From 7490b8012b318c5004c003b7a43f03e261d34057 Mon Sep 17 00:00:00 2001 From: zhl Date: Sun, 29 Jan 2023 16:15:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=93=8D=E4=BD=9C=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=B8=8A=E7=9A=84=E4=B8=80=E4=BA=9B=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/TranRecord.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/modules/TranRecord.ts b/src/modules/TranRecord.ts index f6ec32d..d69d5f3 100644 --- a/src/modules/TranRecord.ts +++ b/src/modules/TranRecord.ts @@ -32,7 +32,7 @@ class TranRecordClass extends BaseModule { public tokenId: string // 对于ERC721, 该值永远为'1' @prop({ default: '1' }) - public amount: string + public value: string @prop() public gas: string @@ -41,7 +41,13 @@ class TranRecordClass extends BaseModule { @prop() public data: string - + /** + * 交易状态 + * 0: 默认, 未确认 + * 1: 已获取receipt, 能通过getTransactionReceipt获取状态 + * 2: 已确认, 交易已经经过6个块确认 + * 10: 错误 + */ @prop({ default: 0 }) public status: number @@ -61,7 +67,7 @@ class TranRecordClass extends BaseModule { blockHash: this.blockHash, from: this.from, to: this.to, - amount: this.amount, + value: this.value, tokenId: this.tokenId, gas: this.gas, gasPrice: this.gasPrice,