You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then calls insert() , but in insert() inserts the tuple (&KeyType::KEY, key) where KeyType::KEY is a u32, so needing to serialize set_contract_storage which is something of length key.length() + 4.
The text was updated successfully, but these errors were encountered:
In https://github.com/paritytech/ink/blob/762730c63daa11f1f3349f5f6d43c77ca7468ddb/crates/storage/src/lazy/mapping.rs#L174
try_insert() check key.length() + value.length() <= 2^14
Then calls insert() , but in insert() inserts the tuple (&KeyType::KEY, key) where KeyType::KEY is a u32, so needing to serialize set_contract_storage which is something of length key.length() + 4.
The text was updated successfully, but these errors were encountered: