fixes failing test cases
for unknown reason using "ws://localhost:8545/" is rejected. but "ws://127.0.0.1:8545/" is ok.
This commit is contained in:
parent
a73cd8de2a
commit
8337eb8b8b
|
@ -12,7 +12,7 @@ const contractCode = "0x740100000000000000000000000000000000000000006020526f7fff
|
|||
var contractAddress = Address.fromHex("e9d8d67ec115e8345606b3ab59fc71cec46761e4")
|
||||
|
||||
proc test() {.async.} =
|
||||
let web3 = await newWeb3("ws://localhost:8545/")
|
||||
let web3 = await newWeb3("ws://127.0.0.1:8545/")
|
||||
let accounts = await web3.provider.eth_accounts()
|
||||
web3.defaultAccount = accounts[0]
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ const LoggerContractCode = "6080604052348015600f57600080fd5b5060bc8061001e600039
|
|||
var contractAddress = Address.fromHex("0xEA255DeA28c84F698Fa195f87fC83D1d4125ef9C")
|
||||
|
||||
proc test() {.async.} =
|
||||
let web3 = await newWeb3("ws://localhost:8545/")
|
||||
let web3 = await newWeb3("ws://127.0.0.1:8545/")
|
||||
let accounts = await web3.provider.eth_accounts()
|
||||
echo "accounts: ", accounts
|
||||
web3.defaultAccount = accounts[0]
|
||||
|
|
Loading…
Reference in New Issue