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!

4

1 Answer 1

5

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

5
  • Thx! It works like a dream! Commented Jan 31, 2017 at 14:57
  • 1
    Did you ever find a way to do this within Metamask?
    – Stan James
    Commented Oct 16, 2017 at 1:38
  • Choose "Injected Web3". Commented Oct 16, 2017 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. Commented Apr 12, 2018 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. Commented Apr 12, 2018 at 5:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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