NonceGeek / Web3-Learning-Camp

Web3.0 Learning Camp
MIT License
134 stars 38 forks source link

【BUG】addr-aggregator app 报错,无法推断类型 #125

Closed qiwihui closed 2 years ago

qiwihui commented 2 years ago

报错提示:

$ mpm release
error[E03004]: unbound type
   ┌─ ./sources/AddrAggregator.move:27:89
   │
27 │    public fun add_addr(acct: &signer, addr: address, chain_name: vector<u8>, signature: Option<vector<u8>>) acquires AddrAggregator{
   │                                                                                         ^^^^^^ Unbound type 'Option' in current scope

error[E04010]: cannot infer type
   ┌─ ./sources/AddrAggregator.move:28:11
   │
28 │       if (Option::is_some(&signature)) {
   │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not infer this type. Try adding an annotation
image
leeduckgo commented 2 years ago

Money: 100 xUSDT

leeduckgo commented 2 years ago

Paid:

https://stcscan.io/main/transactions/detail/0xa8408effce96b7f58b25dfd50b7f4ff119c611cd4361c89679658891b606c4d7