Keymap from cosmwasm_std and secret_toolkit::storage

for the tutorial video https://www.youtube.com/watch?v=EYaEEJuTQhg&list=PLL1JDiTNCUAWosqjRQWm91kcC_Bmp4D6V&index=25

PASSWORD.insert(deps.storage, &password_key, &password)?;
gives error: mismatched types
expected mutable reference &mut dyn cosmwasm_std::traits::Storage
found mutable reference &mut dyn Storage

my function argument is dep: DepsMut, which is from use cosmwasm_std

but my keymap is declared

pub static PASSWORD: Keymap<String, Password> = Keymap::new(b"password");

That Keymap is from use secret_toolkit::storage::Keymap; ???

use secret-tookkit with storage feature to replace secret-toolkit-storage:

secret-toolkit = { 
    git = "https://github.com/scrtlabs/secret-toolkit", 
    tag = "v0.10.3", 
    default-features = false, features = [
  "storage",
  "viewing-key",
  "crypto",
  "utils",
] }

secret toolkit storage was built against secret-cosmwasm-std

this is it’s dependencies line in my (older) contract

cosmwasm-std = { package = “secret-cosmwasm-std”, version = “1.1.10” }

maybe thats the issue?

1 Like

also here is the developer telegram, @SecretNetworkDevs