Skip to content

Commit

Permalink
Merge pull request #9 from UnUniFi/feature/instantiate-kvstore-in-ins…
Browse files Browse the repository at this point in the history
…tantiateMsg

insert instantiation process for sub_msg_id and request_id
  • Loading branch information
kimurayu45z committed Aug 19, 2023
2 parents 64c19dc + a297b0d commit 73307ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/packet-forward/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::query::config::query_config;
use crate::query::failed_requests::query_failed_requests;
use crate::reply::err::reply_err;
use crate::reply::ok::reply_ok;
use crate::state::CONFIG;
use crate::state::{CONFIG, SUB_MSG_ID, REQUEST_ID};
use crate::sudo::ibc_lifecycle_complete::ibc_lifecycle_complete;
use crate::types::Config;
use cosmwasm_std::entry_point;
Expand All @@ -34,6 +34,10 @@ pub fn instantiate(

CONFIG.save(deps.storage, &config)?;

// Instantiate kvstores
SUB_MSG_ID.save(deps.storage, &0)?;
REQUEST_ID.save(deps.storage, &0)?;

Ok(Response::new())
}

Expand Down

0 comments on commit 73307ff

Please sign in to comment.