Skip to content

Commit

Permalink
fix: remove mayachain denom restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
pastaghost committed Mar 4, 2024
1 parent 5a3b369 commit d993e5a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/hdwallet-keepkey/src/mayachain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,11 @@ export async function mayachainSignTx(transport: Transport, msg: core.MayachainS
throw new Error("MAYAChain: Multiple amounts per MsgSend not supported");
}

const denom = m.value.amount[0].denom;
if (denom !== "cacao") {
throw new Error("MAYAChain: Unsupported denomination: " + denom);
}

const send = new MayachainMessages.MayachainMsgSend();
send.setFromAddress(m.value.from_address);
send.setToAddress(m.value.to_address);
send.setAmount(m.value.amount[0].amount);
send.setDenom(m.value.amount[0].denom);

ack = new MayachainMessages.MayachainMsgAck();
ack.setSend(send);
Expand Down

0 comments on commit d993e5a

Please sign in to comment.