智能合约 转USDT(ERC20)

你好! 我写了一个合约 是转erc20_usdt的,现在用remix_javascript vm调用 approveofUsdt 来授权。授权完了,再执行我合约写的转账方法pledgeUsdt,无法把代币转走。报错: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.是为什么?请大神赐教 image.png

请先 登录 后评论

2 个回答

Tiny熊
  擅长:智能合约,以太坊
请先 登录 后评论
渣渣貴
请先 登录 后评论
  • 3 关注
  • 0 收藏,3683 浏览
  • 渣渣貴 提出于 2021-05-08 18:48