mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-08 00:44:06 +00:00
Handle BigNumber event params and customize Decimal (#63)
* Handle BigNumber event params in watchers * Customize decimal according to limits of IEEE-754 decimal128 * Add definition for custom scalar BigDecimal
This commit is contained in:
@@ -591,7 +591,7 @@ export class Indexer implements IndexerInterface {
|
||||
eventInfo = {
|
||||
{{#each event.params}}
|
||||
{{#if (compare this.type 'bigint')}}
|
||||
{{this.name}}: BigInt(ethers.BigNumber.from({{this.name}}).toString())
|
||||
{{this.name}}: BigInt({{this.name}}.toString())
|
||||
{{~else}}
|
||||
{{this.name}}
|
||||
{{~/if}}
|
||||
|
||||
Reference in New Issue
Block a user