Skip to content

Commit

Permalink
Fix style error
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Dec 9, 2023
1 parent 5aa424e commit 1fe4354
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web3.nim
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ proc getJsonLogs*(s: Sender,
options["topics"] = topics
if blockHash.isSome:
doAssert fromBlock.isNone and toBlock.isNone
options["blockhash"] = %blockHash.unsafeGet
options["blockHash"] = %blockHash.unsafeGet
else:
if fromBlock.isSome:
options["fromBlock"] = %fromBlock.unsafeGet
Expand Down
2 changes: 1 addition & 1 deletion web3/conversions.nim
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func `%`*(x: EthSend): JsonNode =
if x.gas.isSome:
result["gas"] = %x.gas.unsafeGet
if x.gasPrice.isSome:
result["gasPrice"] = %Quantity(x.gasPrice.unsafeGet)
result["gasPrice"] = %x.gasPrice.unsafeGet
if x.value.isSome:
result["value"] = %x.value.unsafeGet
if x.data.len > 0:
Expand Down
2 changes: 1 addition & 1 deletion web3/eth_api_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ type
# TODO: address as optional list of address or optional address
address*: seq[Address] # (optional) contract address or a list of addresses from which logs should originate.
topics*: seq[Option[seq[Topic]]] # (optional) list of DATA topics. Topics are order-dependent. Each topic can also be a list of DATA with "or" options.
blockhash*: Option[BlockHash] # (optional) hash of the block. If its present, fromBlock and toBlock, should be none. Introduced in EIP234
blockHash*: Option[BlockHash] # (optional) hash of the block. If its present, fromBlock and toBlock, should be none. Introduced in EIP234

LogObject* = object
removed*: bool # true when the log was removed, due to a chain reorganization. false if its a valid log.
Expand Down

0 comments on commit 1fe4354

Please sign in to comment.