wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.17k stars 283 forks source link

Unable to deploy to zkSync with error "unsupported transaction type: 113" #538

Open lbeder opened 2 months ago

lbeder commented 2 months ago

Hi, For some reason, I'm unable to deploy to zkSync using the plugin as-is, since it doesn't use zksync-ethers (and then it fails with Error: unsupported transaction type: 113 (operation="serializeTransaction", transactionType=113, code=UNSUPPORTED_OPERATION, version=transactions/5.7.0)).

I have followed zkSync's guide and integrated @matterlabs/hardhat-zksync-ethers, @matterlabs/hardhat-zksync-solc, and @matterlabs/hardhat-zksync-deploy (and @matterlabs/hardhat-zksync-verify), so everything compiles properly, and the only issue is when deploy properly creates a zkSync transaction, which for some reason is being rejected by ethers.

Is this a known issue? Perhaps I should have adapted hardhat-deploy-ethers in some way?

lbeder commented 2 months ago

@wighawag is it possible to use hardhat-deploy as-is when deploying to zksync?