Skip to content

Commit

Permalink
Merge pull request #339 from keepkey/osmosis-ibc-update-confirmation-…
Browse files Browse the repository at this point in the history
…screens

fix: osmosis ibc transfer confirmation screens
  • Loading branch information
pastaghost authored Mar 7, 2023
2 parents 8e9fff2 + 1d6de22 commit 28a8669
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/firmware/fsm_msg_osmosis.h
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,17 @@ void fsm_msgOsmosisMsgAck(const OsmosisMsgAck *msg) {
/** Confirm transaction parameters on-screen */

if (!confirm(ButtonRequestType_ButtonRequest_Other, "IBC Transfer",
"Transfer %.6f %s to %s?",
"Transfer %.6f %s?",
atof(msg->ibc_transfer.amount) / pow(10, OSMOSIS_PRECISION),
msg->ibc_transfer.denom, msg->ibc_transfer.receiver)) {
msg->ibc_transfer.denom)) {
osmosis_signAbort();
fsm_sendFailure(FailureType_Failure_ActionCancelled, NULL);
layoutHome();
return;
}

if (!confirm(ButtonRequestType_ButtonRequest_Other, "Confirm Dest. Addr",
"%s", msg->ibc_transfer.receiver)) {
osmosis_signAbort();
fsm_sendFailure(FailureType_Failure_ActionCancelled, NULL);
layoutHome();
Expand Down

0 comments on commit 28a8669

Please sign in to comment.