diff --git a/extension/src/popup/helpers/soroban.ts b/extension/src/popup/helpers/soroban.ts index 38a67d9e3a..8534038b73 100644 --- a/extension/src/popup/helpers/soroban.ts +++ b/extension/src/popup/helpers/soroban.ts @@ -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(