menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Truffle Suite

Sweet tools for smart contracts

Channels
Team

Payable not working

May 11, 2020 at 7:55am

Payable not working

May 11, 2020 at 7:55am
Hi, the following mini contract is accepting Ether - it works on testnets but does not work with Ganache. When trying to send Ether to its address with MetaMask, I get no pre-confirm warning, but once I click confirm I get an ethjs-rpc error. Any idea how I could fix this? It would be great for development if this works also locally, not just on testnets...
pragma solidity ^0.5.17;
contract Test {
function() external payable { }
}
No messages yet