11

remix为什么无法使用push呢? | 登链社区 | 技术问答

 2 years ago
source link: https://learnblockchain.cn/question/2610
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

最佳答案 1天前

你的 testUser, 并不是一个 address的数组, 而是一个结构体数组。

因此你需要push 的是一个结构体:

testUser.push(uft({user: _user}));
Tiny熊 - 布道者
擅长:智能合约,以太坊 | 采纳率 38% | 回答于 1天前

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK