dapphub / dapple

EVM contract system developer multitool
GNU General Public License v3.0
298 stars 59 forks source link

Can't send ether in dapple tests #374

Closed chatch closed 7 years ago

chatch commented 7 years ago

See test contract here https://gist.github.com/chatch/bc495971a3a02b213fabb57a4f6da5de/87f4fdf383bee35a932172a4ae691fa585a783d4

Sending ether to other contracts in setUp() or test functions fails.

Tested with dapple@0.8.36. Was working with dapple 0.7.2.

ethernomad commented 7 years ago

https://github.com/ethereum/solidity/blob/develop/Changelog.md#040-2016-09-08

chatch commented 7 years ago

Thanks. Ok so even the fallback needs 'payable'.

Updated contract so now it works : https://gist.github.com/chatch/bc495971a3a02b213fabb57a4f6da5de