diff --git a/packages/sdk/src/custodianApi/eca3/ECA3CustodianApi.ts b/packages/sdk/src/custodianApi/eca3/ECA3CustodianApi.ts index d411e47b..2778853f 100644 --- a/packages/sdk/src/custodianApi/eca3/ECA3CustodianApi.ts +++ b/packages/sdk/src/custodianApi/eca3/ECA3CustodianApi.ts @@ -148,19 +148,19 @@ export class ECA3CustodianApi extends EventEmitter implements ICustodianApi { } return { - transactionStatus: mapStatusObjectToStatusText(result.status), - transactionStatusDisplayText: result.status?.displayText, - custodian_transactionId: result.id, - from: result.from, - gasLimit: result.gas, - gasPrice: result.gasPrice, - maxFeePerGas: result.maxFeePerGas, - maxPriorityFeePerGas: result.maxPriorityFeePerGas, - nonce: result.nonce, - transactionHash: result.hash, - reason: result.status.reason, - to: result.to, - signedRawTransaction: result.signedRawTransaction, + transactionStatus: mapStatusObjectToStatusText(result.transaction.status), + transactionStatusDisplayText: result.transaction.status?.displayText, + custodian_transactionId: result.transaction.id, + from: result.transaction.from, + gasLimit: result.transaction.gas, + gasPrice: result.transaction.gasPrice, + maxFeePerGas: result.transaction.maxFeePerGas, + maxPriorityFeePerGas: result.transaction.maxPriorityFeePerGas, + nonce: result.transaction.nonce, + transactionHash: result.transaction.hash, + reason: result.transaction.status.reason, + to: result.transaction.to, + signedRawTransaction: result.transaction.signedRawTransaction, chainId: result.metadata.chainId, custodianPublishesTransaction: result.metadata.custodianPublishesTransaction, rpcUrl: result.metadata.rpcUrl, diff --git a/packages/sdk/src/custodianApi/eca3/mocks/mockJsonRpcGetTransactionByIdResponse.ts b/packages/sdk/src/custodianApi/eca3/mocks/mockJsonRpcGetTransactionByIdResponse.ts index bf421164..8bd70a6e 100644 --- a/packages/sdk/src/custodianApi/eca3/mocks/mockJsonRpcGetTransactionByIdResponse.ts +++ b/packages/sdk/src/custodianApi/eca3/mocks/mockJsonRpcGetTransactionByIdResponse.ts @@ -5,23 +5,25 @@ export const mockJsonRpcGetTransactionByIdResponse: JsonRpcResult