6

Using browser-solidity in combination with metamask I am testing a new contract on testnet https://testnet.etherscan.io/address/0xc03db39c18b6056f8c3a3a5495a1e11f3ff8885a but when trying to call refillFunds() method:

/* Refill SC funds to feed faucet requests */
function refillFunds() payable returns (uint256) {
    calledRefillFunds(msg.sender, timestamp(), msg.value); // Log

    return 1;
}

I got this screen to perform a transaction

enter image description here

but there is no option (or I cannot find where it is) to transfer 1 ether for example. The only option seems to be to transfer 0 ethers and pay the fees.

Any reason why I cannot send non-zero value with metamask interface in this transaction? Thx!

5

In Browser Solidity, there is a tab where you can set the parameters to use when sending a transaction enter image description here

  • Thx! It works like a dream! – Juan Ignacio Pérez Sacristán Jan 31 '17 at 14:57
  • Did you ever find a way to do this within Metamask? – Stan James Oct 16 '17 at 1:38
  • Choose "Injected Web3". – Xavier Leprêtre B9lab Oct 16 '17 at 20:52
  • answer appears to be obsolete already. the current manifestation of browser-solidity is at remix.ethereum.org and there is no such tab. – jcomeau_ictx Apr 12 '18 at 5:11
  • 1
    ignore my comment, it's there under the Run tab. it was just confusing because I though that form was only for contract creation. – jcomeau_ictx Apr 12 '18 at 5:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.