Skip to content

Commit

Permalink
add error to callback status
Browse files Browse the repository at this point in the history
  • Loading branch information
Art3miX committed Dec 10, 2023
1 parent f6a85c4 commit 83c7be8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/ics721-base-tester/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ mod receive_callbacks {
// the owner should be ics721 if we on
// dest chain, the owner should be None
}
Ics721Status::Failed => {
Ics721Status::Failed(..) => {
// Transfer failed, the NFT owner should be the sender
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ics721/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ where

let callback = match ack_callback_msg(
deps.as_ref(),
Ics721Status::Failed,
Ics721Status::Failed(error.to_string()),
message.clone(),
nft_contract.to_string(),
) {
Expand Down
2 changes: 1 addition & 1 deletion packages/ics721/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub struct Ics721AckCallbackMsg {
#[cw_serde]
pub enum Ics721Status {
Success,
Failed,
Failed(String),
}

/// This is a wrapper for ics721 callbacks
Expand Down

0 comments on commit 83c7be8

Please sign in to comment.