fix tests

This commit is contained in:
jangko 2020-07-15 15:41:22 +07:00
parent b29311a9d0
commit 4097cfaf95
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
5 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ const MetaCoinCode = "608060405234801561001057600080fd5b503260009081526020819052
proc test() {.async.} =
let web3 = await newWeb3("ws://127.0.0.1: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]

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://localhost: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://localhost:8545/")
let accounts = await web3.provider.eth_accounts()
echo "accounts: ", accounts
web3.defaultAccount = accounts[0]

View File

@ -25,7 +25,7 @@ contract(NumberStorage):
const NumberStorageCode = "6060604052341561000f57600080fd5b60bb8061001d6000396000f30060606040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633fb5c1cb8114604d578063f2c9ecd8146062575b600080fd5b3415605757600080fd5b60606004356084565b005b3415606c57600080fd5b60726089565b60405190815260200160405180910390f35b600055565b600054905600a165627a7a7230582023e722f35009f12d5698a4ab22fb9d55a6c0f479fc43875c65be46fbdd8db4310029"
proc test() {.async.} =
let web3 = await newWeb3("ws://127.0.0.1:8545")
let web3 = await newWeb3("ws://127.0.0.1:8545/")
let accounts = await web3.provider.eth_accounts()
web3.defaultAccount = accounts[0]

View File

@ -44,7 +44,7 @@ type
historicalEventsProcessed: bool
removed: bool
ContractCallBase {.pure, inheritable.} = object
ContractCallBase = object of RootObj
web3: Web3
data: string
to: Address