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,