调用合约方法出错

transact to FoMo3Dlong.buyXaddr pending ...

**[vm] from:** 0x5B3...eddC4

to: FoMo3Dlong.buyXaddr(address,uint256) 0x7EF...8CB47

value: 2000000000000000 wei

data: 0x98a...00002

logs: 0

hash: 0x6e8...5c6fb

Debug

transact to FoMo3Dlong.buyXaddr errored: VM error: revert. revert The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance. Debug the transaction to get more information.

请先 登录 后评论

最佳答案 2021-06-01 17:47

buyXaddr 这个方法是不是没有payable 修饰。

如果没有 payable, 则value 只能是 0

请先 登录 后评论

其它 0 个回答

  • 1 关注
  • 0 收藏,3177 浏览
  • Daniel 提出于 2021-05-31 11:27