Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
etan-status committed Aug 25, 2023
1 parent c91984c commit dc886f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions tests/test.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pkg/unittest2
import ../web3
import chronos, options, json, stint, parseutils
import chronos, options, json, stint
import test_utils


Expand Down Expand Up @@ -138,8 +138,7 @@ suite "Contracts":
receipt = await web3.deployContract(MetaCoinCode)
cc = receipt.contractAddress.get

var deployedAtBlock: uint64
discard parseHex(receipt.blockNumber, deployedAtBlock)
let deployedAtBlock = distinctBase(receipt.blockNumber)
echo "Deployed MetaCoin contract: ", cc, " at block ", deployedAtBlock

let ns = web3.contractSender(MetaCoin, cc)
Expand Down
4 changes: 2 additions & 2 deletions web3/ethtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import
stint, stew/[byteutils, results]

export
hashes, options
hashes, options, typetraits

const
web3_consensus_const_preset* {.strdefine.} = "mainnet"
Expand Down Expand Up @@ -219,7 +219,7 @@ type
topics*: Option[seq[string]]#Option[seq[FilterData]] # (optional) list of DATA topics. Topics are order-dependent. Each topic can also be a list of DATA with "or" options.
blockhash*: Option[BlockHash]

LogObject* = object
LogObject* = object
removed*: bool # true when the log was removed, due to a chain reorganization. false if its a valid log.
logIndex*: Quantity # integer of the log index position in the block. null when its pending log.
transactionIndex*: Quantity # integer of the transactions index position log was created from. null when its pending log.
Expand Down

0 comments on commit dc886f9

Please sign in to comment.