Skip to content

Commit

Permalink
tweaks history helper to accomodate Mercury response change
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidesstaffieri committed Jan 17, 2024
1 parent da3ac81 commit 4f99edd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions extension/src/popup/helpers/soroban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,12 @@ export const getAttrsFromSorobanHorizonOp = (
}

// operation record from Mercury
if (operation.contractId) {
return operation;
if (operation.transaction_attr.contractId) {
return {
contractId: operation.transaction_attr.contractId,
fnName: operation.transaction_attr.fnName,
...operation.transaction_attr.args,
};
}

const txEnvelope = TransactionBuilder.fromXDR(
Expand Down

0 comments on commit 4f99edd

Please sign in to comment.