Unexpected Verification Error in when calling smart_table::add #360
-
Discord user IDnguyendangduong3711 Describe your question in detail.Asked from discord Run this unit test module dummy::test {
use std::debug::print;
use aptos_std::smart_table::{Self, SmartTable};
#[test]
fun test() {
let table = smart_table::new<u64, u64>();
smart_table::add<u64,u64>(&mut table, 1u64, 100u64);
smart_table::clear(&mut table);
let length = smart_table::length(&table);
assert!(length == 0, 0);
smart_table::destroy_empty(table);
}
} What error, if any, are you getting?
What have you tried or looked at? Or how can we reproduce the error?No response Which operating system are you using?macOS Which SDK or tool are you using? (if any)TypeScript SDK Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I can reproduce this error when i'm using main branch of aptos-core for AptosFramework. If I switched to mainnet branch of aptos-core, it works fine. |
Beta Was this translation helpful? Give feedback.
-
Hey @MoonShiesty @IsaacCisnerosFT @0xaptosj! The new CLI (4.0.0) has been released which fixes the issue described here. If you update, things should work as normal. https://github.com/aptos-labs/aptos-core/releases/tag/aptos-cli-v4.0.0 |
Beta Was this translation helpful? Give feedback.
Hey @MoonShiesty @IsaacCisnerosFT @0xaptosj! The new CLI (4.0.0) has been released which fixes the issue described here. If you update, things should work as normal.
https://github.com/aptos-labs/aptos-core/releases/tag/aptos-cli-v4.0.0