增加操作记录上的一些注释
This commit is contained in:
parent
7c9501d36e
commit
7490b8012b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user