Closed zach-is-my-name closed 4 years ago
Hello,
It is not necessary to add the fallback function in the interface. I am not sure what you mean by "Only un-commenting function() public payable allow send without data to succeed"
Looking into your code, the error is that callCost
is calculated using gasLimit=900000 but aion.ScheduleCall
is called using 600000. This will revert as the value passed to the function do not match the calculation using the gasLimit passed to it.
Let me know if this solves the issue.
Yes it does. Very sorry
I'm not completely sure, but it seems that the example given in the README requires a fallback function to be added to the interface. This may not affect the behavior of Aion itself, but when trying to invoke payable or fund MyContract.
From Solidity Docs v0.42
pragma solidity ^0.4.0;
Remix: trying to fund TestAion. Only un-commenting
function() public payable
allow send without data to succeedbrowser/TestAion.sol : dweb:/ipfs/Qmf2q3bU98EXBoGCNTdC5MqR1GkQ4ZgxPUyhQnFTwzCC7V metadata.json : dweb:/ipfs/QmNQhQV19DntECVgPjCDb771HWF8ZZnXY8JxB4NwrmmeD7