You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I have encountered a tricky issue when making a simple transfer transaction on Optimism.
I use a standard UI flow to construct the following transaction object (output by Ethers.Js). The transaction specifies a simple transfer of the native token from one address to another.
I then use the following code to serialize and sign the transaction:
let signingKey:SigningKey = new SigningKey(newHDKey.privateKey);
if(!SigningKey.isSigningKey(signingKey)){
throw(new Error("Error: Unable to create EVM signing key from hd private key."))
}
let txResolved = await resolveProperties(transaction);
if(txResolved.from != null) {
if (txResolved.from.toLowerCase() !== account.address.toLowerCase()) {
throw Error("transaction from address mismatch");
}
delete txResolved.from
}
const txDigest = keccak256(serialize(<UnsignedTransaction>txResolved))
const sigObject = signingKey.signDigest(txDigest);
txResolved.from = account.address
const signedTx = serialize(<UnsignedTransaction>txResolved, sigObject);
return signedTx;
However, when I publish the signed and serialized transaction, the Optimism RPC returns the following error: rlp: expected input list for types.txdata. The same flow works just fine for other networks including pre-EIP1559 Layer 2's like Arbitrum.
I have searched online for similar issues/solutions to no avail. Does anyone have an idea as to what may be causing this problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I have encountered a tricky issue when making a simple transfer transaction on Optimism.
I use a standard UI flow to construct the following transaction object (output by Ethers.Js). The transaction specifies a simple transfer of the native token from one address to another.
Note: I have changed the addresses for privacy.
I then use the following code to serialize and sign the transaction:
However, when I publish the signed and serialized transaction, the Optimism RPC returns the following error: rlp: expected input list for types.txdata. The same flow works just fine for other networks including pre-EIP1559 Layer 2's like Arbitrum.
I have searched online for similar issues/solutions to no avail. Does anyone have an idea as to what may be causing this problem?
Beta Was this translation helpful? Give feedback.
All reactions