Skip to content

Commit 63d586b

Browse files
committed
Gnosis network support
1 parent 0012ded commit 63d586b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web3/ethtypes.nim

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ type
8383
gasLimit*: Quantity
8484
gasUsed*: Quantity
8585
timestamp*: Quantity
86-
nonce*: Quantity
87-
mixHash*: BlockHash
86+
when not defined(gnosisChainBinary):
87+
nonce*: Quantity
88+
mixHash*: BlockHash
8889

8990
## A block object, or null when no block was found
9091
BlockObject* = ref object
@@ -102,7 +103,8 @@ type
102103
gasLimit*: Quantity # the maximum gas allowed in this block.
103104
gasUsed*: Quantity # the total used gas by all transactions in this block.
104105
timestamp*: Quantity # the unix timestamp for when the block was collated.
105-
nonce*: Quantity # hash of the generated proof-of-work. null when its pending block.
106+
when not defined(gnosisChainBinary):
107+
nonce*: Option[Quantity] # hash of the generated proof-of-work. null when its pending block.
106108
size*: Quantity # integer the size of this block in bytes.
107109
totalDifficulty*: UInt256 # integer of the total difficulty of the chain until this block.
108110
transactions*: seq[TxHash] # list of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.

0 commit comments

Comments
 (0)