diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-08 07:56:35 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:24 +0800 |
commit | 25b6e7092f4b8dfb3c15c8c6b815226196b87831 (patch) | |
tree | bd6712d51deae1dbc5ef6cf72ff7bfca5befb169 /packages/pipeline/src/entities | |
parent | 62412b8551d1171844c9cdb30f2b2fe0ab2ba66b (diff) | |
download | dexon-sol-tools-25b6e7092f4b8dfb3c15c8c6b815226196b87831.tar dexon-sol-tools-25b6e7092f4b8dfb3c15c8c6b815226196b87831.tar.gz dexon-sol-tools-25b6e7092f4b8dfb3c15c8c6b815226196b87831.tar.bz2 dexon-sol-tools-25b6e7092f4b8dfb3c15c8c6b815226196b87831.tar.lz dexon-sol-tools-25b6e7092f4b8dfb3c15c8c6b815226196b87831.tar.xz dexon-sol-tools-25b6e7092f4b8dfb3c15c8c6b815226196b87831.tar.zst dexon-sol-tools-25b6e7092f4b8dfb3c15c8c6b815226196b87831.zip |
Use bigint for gasUsed and gasPrice in Transaction
Diffstat (limited to 'packages/pipeline/src/entities')
-rw-r--r-- | packages/pipeline/src/entities/Transaction.ts | 6 |
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; } |