Skip to content

Commit

Permalink
Merge pull request #21 from okx/wc/rpc-dev
Browse files Browse the repository at this point in the history
event msg
  • Loading branch information
cwbhhjl authored May 10, 2023
2 parents e635ac4 + 259ac9e commit d877702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subcommand/server/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl From<&brc20::ActionReceipt> for TxEvent {
amount: mint_event.amount.to_string(),
to: mint_event.to.to_string(),
valid: true,
msg: "ok".to_string(),
msg: mint_event.msg.clone().unwrap_or("ok".to_string()),
}),
brc20::BRC20Event::TransferPhase1(trans1) => {
Self::InscribeTransfer(InscribeTransferEvent {
Expand All @@ -121,7 +121,7 @@ impl From<&brc20::ActionReceipt> for TxEvent {
from: trans2.from.to_string(),
to: trans2.to.to_string(),
valid: true,
msg: "ok".to_string(),
msg: trans2.msg.clone().unwrap_or("ok".to_string()),
}),
},
Err(err) => Self::Error(ErrorEvent {
Expand Down

0 comments on commit d877702

Please sign in to comment.