0

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 {
        
}
#[ink(storage)]
#[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 ?

4

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.