File tree 2 files changed +3
-3
lines changed
testmodule/providers/jsonrpc 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ func `%`*[T: object or ref object](obj: T): JsonNode =
397
397
398
398
T.expectEmptyPragma (serialize, " Cannot specify 'key' or 'ignore' on object defition" )
399
399
400
- const serializeAllFields = T.hasCustomPragma (serialize)
400
+ const serializeAllFields {. used .} = T.hasCustomPragma (serialize)
401
401
402
402
for name, value in o.fieldPairs:
403
403
# TODO : move to %
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ suite "JSON Conversions":
135
135
136
136
without tx =? PastTransaction .fromJson (json):
137
137
fail
138
- check tx.blockHash == BlockHash ( array [32 , byte ].fromHex (" 0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922" ) )
138
+ check tx.blockHash == array [32 , byte ].fromHex (" 0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922" )
139
139
check tx.blockNumber == 0x 22e .u256
140
140
check tx.`from` == Address .init (" 0xe00b677c29ff8d8fe6068530e2bc36158c54dd34" ).get
141
141
check tx.gas == 0x 4d4bb .u256
@@ -154,7 +154,7 @@ suite "JSON Conversions":
154
154
155
155
test " PastTransaction serializes correctly" :
156
156
let tx = PastTransaction (
157
- blockHash: BlockHash ( array [32 , byte ].fromHex (" 0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922" ) ),
157
+ blockHash: array [32 , byte ].fromHex (" 0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922" ),
158
158
blockNumber: 0x 22e .u256,
159
159
`from`: Address .init (" 0xe00b677c29ff8d8fe6068530e2bc36158c54dd34" ).get,
160
160
gas: 0x 4d4bb .u256,
You can’t perform that action at this time.
0 commit comments