From 9907e70aede0a6634a579051bc35f227a284e50a Mon Sep 17 00:00:00 2001 From: rus7hex Date: Wed, 12 Jun 2024 15:27:25 +0800 Subject: [PATCH] fix eth transaction builder issue at service mode --- packages/app-eth/package.json | 2 +- packages/app-eth/src/transaction.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/app-eth/package.json b/packages/app-eth/package.json index ee05f10..da09a92 100644 --- a/packages/app-eth/package.json +++ b/packages/app-eth/package.json @@ -1,6 +1,6 @@ { "name": "@secux/app-eth", - "version": "3.0.20", + "version": "3.0.21", "description": "SecuX Hardware Wallet ETH API", "keywords": [ "secux", diff --git a/packages/app-eth/src/transaction.ts b/packages/app-eth/src/transaction.ts index f6e35e0..c1b5ff0 100644 --- a/packages/app-eth/src/transaction.ts +++ b/packages/app-eth/src/transaction.ts @@ -224,7 +224,8 @@ class ETHTransactionBuilder { return parseInt(Buffer.from(this.tx.chainId).toString("hex"), 16); } - get tx() { return wrapResult(_ethTx.get(this)); } + get tx() { return _ethTx.get(this); } + get txJSON() { return wrapResult(this.tx); } } class EIP1559Builder extends ETHTransactionBuilder {