Extrinsic failed when invoke HashMap/BTreeMap insert() in ink! contract via Polkadot JS api
问题 I got an issue when invoke a contract call from Polkadot JS api. If the function include HashMap insert() or BTreeMap insert() in contract, when call it via api, I'll get: {"ApplyExtrinsic":1} [ An extrinsic failed.] {"index":"0x0001","data":[{"Other":null},{"weight":10000000000,"class":"Normal","paysFee":"Yes"}]} Event won't be triggered correctly. But if I use HashMap/ BTreeMap get() or contains_key(), I can get event data correctly. Here's my contract code in lib.rs: /* Using the standard