Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insert instantiation process for sub_msg_id and request_id #9

Merged
merged 1 commit into from
Aug 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading