"Error": "Simulation failed with status: TYPE_MISMATCH" during Publishing #311
-
Discord user IDspielcrypto Describe your question in detail.I try to transfer multiple Fungible Assets that my account hold to other account with this entry function: public entry fun fas(account: &signer, fa_addresses: vector<address>) {
let account_address = signer::address_of(account);
vector::for_each<address>(fa_addresses, |fa_addr| {
let metadata = object::address_to_object<Metadata>(fa_addr);
primary_fungible_store::transfer(
account,
metadata,
@ghostly_addr,
primary_fungible_store::balance(account_address, metadata)
);
});
} This compile without issues but when I try to publish I get this error:
What error, if any, are you getting?{ What have you tried or looked at? Or how can we reproduce the error?What have you tried or looked at? Which operating system are you using?Linux (Ubuntu, Fedora, Windows WSL, etc.) Which SDK or tool are you using? (if any)N/A Describe your environment or tooling in detailaptos-move 3.4.1 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe this is a temporary issue, can you update your Move.toml with the following line instead? Let me know if this fixes it.
|
Beta Was this translation helpful? Give feedback.
I believe this is a temporary issue, can you update your Move.toml with the following line instead? Let me know if this fixes it.