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:
jangko 2021-05-19 10:52:47 +07:00
parent a73cd8de2a
commit 8337eb8b8b
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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]