I am writing a smart contract in Rust using the Openbrush library. I am using version 3.0.0.
pub const STORAGE_KEY: u32 = openbrush::storage_unique_key!(metaData);
#[openbrush::upgradeable_storage(STORAGE_KEY)]
#[derive(Default, Debug)]
pub struct metaData {
}
#[derive(Default, Storage)]
pub struct PeerNftcontract {
#[storage_field]
data: metaData
}
I am using this code for changing the storage in upgradable smart contracts. and whatever field I have to change I am writing in the metaData struct. but it was not working. can anyone help me out here ?