15

我在从fromaddr地址中转入usdt到合约中出现错误是怎么回事呀?from已经授权给这个合约...

 4 years ago
source link: https://learnblockchain.cn/question/2316
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

5 我在从fromaddr地址中转入usdt到合约中出现错误是怎么回事呀?from已经授权给这个合约了

最佳答案 2021-07-14 17:57

transferIn(从fromAddr 到 合约地址) 的实现应该是:

usdt.transferFrom(fromAddr, address(this), amount);
Tiny熊 - 布道者
擅长:智能合约,以太坊 | 采纳率 39% | 回答于 2021-07-14 17:57

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK