Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion contracts/ibc_transfer/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn read_reply_payload(store: &dyn Storage, id: u64) -> StdResult<SudoPayload

/// SUDO_PAYLOAD - tmp storage for sudo handler payloads
/// key (String, u64) - (channel_id, seq_id)
/// every ibc chanel have its own sequence counter(autoincrement)
/// every ibc channel have its own sequence counter(autoincrement)
/// we can catch the counter in the reply msg for outgoing sudo msg
/// and save our payload for the msg
pub const SUDO_PAYLOAD: Map<(String, u64), Vec<u8>> = Map::new("sudo_payload");
Expand Down
2 changes: 1 addition & 1 deletion contracts/neutron_interchain_txs/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ fn sudo_timeout(deps: DepsMut, _env: Env, request: RequestPacket) -> StdResult<R
// write an error log and / or save the acknowledgement to an errors queue for later manual
// processing. The decision is based purely on your application logic.
// Please be careful because it may lead to an unexpected state changes because state might
// has been changed before this call and will not be reverted because of supressed error.
// has been changed before this call and will not be reverted because of suppressed error.
let payload = read_sudo_payload(deps.storage, channel_id, seq_id).ok();
if let Some(payload) = payload {
// update but also check that we don't update same seq_id twice
Expand Down