Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

payable dapple test #380

Open
nmushegian opened this issue Jan 2, 2017 · 0 comments
Open

payable dapple test #380

nmushegian opened this issue Jan 2, 2017 · 0 comments

Comments

@nmushegian
Copy link
Member

Also I tried to override the fallback function to make it payable, and that didn't work

contract FakeJoiner is Tester {
 function join(uint256 channelId, uint256 value) returns (bool) {
   return DataMarket(_t).join.value(value)(channelId);
 }
 
 // didn't work
 function() payable {}

 // works
 function getMoney() payable {}
}

so instead I just made a getMoney function, which works

nikolai 3:43 PM
the fallback in dapple test should be extended to be payable and forward value `function() payable { _target.call.value(msg.value)(msg.data) }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant