Restore test to check legacy transaction

This commit is contained in:
Arnaud 2025-04-02 09:58:23 +02:00
parent 09d3fff502
commit d4fcb373cf
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

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