Replies: 2 comments
-
Can you try using the key For example: const tx = ethers.Transaction.from({
"to": "0x0000000000000000000000000000000000000000",
"value": "1000000000000000",
"data": "0x",
"gasLimit": "21000",
"nonce": 0,
"chainId": "11155111",
"type": 4,
"authorizationList": [
{
"chainId": 11155111n,
"address": "0x3D52997A42e2e4f49Ed8F6f85442c53949979C99",
"nonce": 0n,
"signature": ethers.Signature.from("0x1bb32b619472560e22645c588d48b8632a0ffd1666cdcb7a879b9567304d3d0e6c19aa84cff016d2335cd1a6c67f917a83b36123c05dd4d96130268e539f65e01c")
}
],
"maxFeePerGas": "20000000000",
"maxPriorityFeePerGas": "1000000000"
}); There are plans to loosen the |
Beta Was this translation helpful? Give feedback.
0 replies
-
(moving to discussions) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ethers Version
6.14.3
Search Terms
No response
Describe the Problem
Hi Ethers.js team,
I'm encountering an issue when trying to create an EIP-7702 (type 4) transaction using
ethers.Transaction.from()
with a plain JavaScript object. Even when theauthorizationList
and its entries (authority
,contract
addresses) are correctly defined in the input POJO, the internalauthorizationify
function seems to receive anundefined
value for an address, leading to an "invalid address (argument='address', value=null)" error.Environment:
Code Snippet
Contract ABI
Errors
Environment
No response
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions