aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-08 07:56:35 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:48 +0800
commit830d0f3b21ae26a2b683c388211e442e82bc7459 (patch)
tree00ba91ef66839da04e07a66f58e61c4cd8b0ab74 /packages/pipeline/src/entities
parent8248fbb231a0c0acd59fd1f265114dd6dc78a253 (diff)
downloaddexon-sol-tools-830d0f3b21ae26a2b683c388211e442e82bc7459.tar.gz
dexon-sol-tools-830d0f3b21ae26a2b683c388211e442e82bc7459.tar.zst
dexon-sol-tools-830d0f3b21ae26a2b683c388211e442e82bc7459.zip
Use bigint for gasUsed and gasPrice in Transaction
Diffstat (limited to 'packages/pipeline/src/entities')
-rw-r--r--packages/pipeline/src/entities/Transaction.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/pipeline/src/entities/Transaction.ts b/packages/pipeline/src/entities/Transaction.ts
index d89d44746..8a68da813 100644
--- a/packages/pipeline/src/entities/Transaction.ts
+++ b/packages/pipeline/src/entities/Transaction.ts
@@ -6,6 +6,8 @@ export class Transaction {
@PrimaryColumn() public blockHash!: string;
@PrimaryColumn() public blockNumber!: number;
- @Column() public gasUsed!: number;
- @Column() public gasPrice!: number;
+ @Column({ type: 'bigint' })
+ public gasUsed!: number;
+ @Column({ type: 'bigint' })
+ public gasPrice!: number;
}