Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction type EIP712_TX_TYPE not supported #4832

Open
MickWang opened this issue Sep 12, 2024 · 2 comments
Open

Transaction type EIP712_TX_TYPE not supported #4832

MickWang opened this issue Sep 12, 2024 · 2 comments
Assignees
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6

Comments

@MickWang
Copy link

Ethers Version

6.13.2

Search Terms

EIP712_TX_TYPE, eip712

Describe the Problem

User zksync-ethers(v6.12.1) signer to send EIP712 transaction, zksync-ethers depends on ethers.js v6. The transaction can be sent and confirmed on chain. There is an error happens in ethers's abstract-provider (

const tx = Transaction.from(signedTx);
), where it use Trnsaction.from(signedTx) and got error as :
Error: unsupported transaction type (operation="from", code=UNSUPPORTED_OPERATION, version=6.13.2). So the transaction type EIP712 is not supported in transaction.js.

Code Snippet

const transaction = {...tx}
transaction.customData = tx.customData;
                const zksyncSigner = ZksyncSigner.from(
                  // @ts-ignore
                  signer,
                  tx.chainId,
                  new ZksyncProvider(getRpc(tx.chainId))
                );
                const res = await zksyncSigner.sendTransaction({
                  ...transaction,
                  gasLimit: fee.gasLimit,
                  maxPriorityFeePerGas: Number(fee.maxPriorityFeePerGas)
                    ? fee.maxPriorityFeePerGas
                    : 100,
                });
                return res;

Contract ABI

No response

Errors

Error: unsupported transaction type (operation="from", code=UNSUPPORTED_OPERATION, version=6.13.2)
    at makeError (errors.js:137:21)
    at assert (errors.js:156:15)
    at Transaction.from (transaction.js:933:68)
    at BrowserProvider.broadcastTransaction (abstract-provider.js:761:83)
    at async Signer.sendTransaction (signer.js:593:20)
    at async eval (useSendMultichainTx.ts:489:29)
    at async eval (SignButton.tsx:97:26)

Environment

Ethereum (mainnet/ropsten/rinkeby/goerli)

Environment (Other)

No response

@MickWang MickWang added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Sep 12, 2024
@ricmoo
Copy link
Member

ricmoo commented Sep 16, 2024

I think this may be an issue in the zkSync library? Can you print out the entire value being passed in?

If you open an issue on zkSync, please also link to it here.

@MickWang
Copy link
Author

I think this may be an issue in the zkSync library? Can you print out the entire value being passed in?

If you open an issue on zkSync, please also link to it here.

here: zksync-sdk/zksync-ethers#202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants