From 878015166416df46d4d94f52c2d867b70a59d30e Mon Sep 17 00:00:00 2001 From: AdamSchinzel Date: Wed, 21 Feb 2024 14:52:40 +0100 Subject: [PATCH] Update type for `gasPrice` --- api/types.go | 2 +- blockbook-api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/types.go b/api/types.go index da127dd6..e7622f39 100644 --- a/api/types.go +++ b/api/types.go @@ -231,7 +231,7 @@ type EthereumSpecific struct { Nonce uint64 `json:"nonce"` GasLimit *big.Int `json:"gasLimit"` GasUsed *big.Int `json:"gasUsed,omitempty"` - GasPrice *Amount `json:"gasPrice"` + GasPrice *Amount `json:"gasPrice,omitempty"` Data string `json:"data,omitempty"` ParsedData *bchain.EthereumParsedInputData `json:"parsedData,omitempty"` InternalTransfers []EthereumInternalTransfer `json:"internalTransfers,omitempty"` diff --git a/blockbook-api.ts b/blockbook-api.ts index f36c9352..6f2d0a40 100644 --- a/blockbook-api.ts +++ b/blockbook-api.ts @@ -32,7 +32,7 @@ export interface EthereumSpecific { nonce: number; gasLimit: number; gasUsed?: number; - gasPrice: string; + gasPrice?: string; data?: string; parsedData?: EthereumParsedInputData; internalTransfers?: EthereumInternalTransfer[];