mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-03 06:03:09 +00:00
Restore test to check legacy transaction
This commit is contained in:
parent
09d3fff502
commit
d4fcb373cf
@ -101,6 +101,16 @@ suite "Wallet":
|
||||
check txHash.hash != TransactionHash.default
|
||||
|
||||
test "Can call state-changing function automatically":
|
||||
#TODO add actual token contract, not random address. Should work regardless
|
||||
let wallet = !Wallet.new(pk_with_funds, provider)
|
||||
let overrides = TransactionOverrides(
|
||||
nonce: some 0.u256,
|
||||
gasPrice: some 1_000_000_000.u256,
|
||||
gasLimit: some 22_000.u256)
|
||||
let testToken = Erc20.new(wallet.address, wallet)
|
||||
await testToken.transfer(wallet.address, 24.u256, overrides)
|
||||
|
||||
test "Can call state-changing function automatically EIP1559":
|
||||
#TODO add actual token contract, not random address. Should work regardless
|
||||
let wallet = !Wallet.new(pk_with_funds, provider)
|
||||
let overrides = TransactionOverrides(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user