Running deploy script for the Greeter contract
An unexpected error occurred:

Error: too many arguments: in Contract constructor (count=2, expectedCount=0, code=UNEXPECTED_ARGUMENT, version=contracts/5.7.0)

Apr 2, 2023, 10:05 PM
reason: 'too many arguments: in Contract constructor',
code: 'UNEXPECTED_ARGUMENT',
count: 2,
expectedCount: 0
Apr 2, 2023, 10:05 PM
remove the arguments inside deploy()
Apr 2, 2023, 10:06 PM
from this const greeterContract = await deployer.deploy(artifact, [greeting]);?
when remove one then came requestMethod: 'POST',
url: 'https://mainnet.era.zksync.io'
},
tx: {
customData: { factoryDeps: [Array], gasPerPubdata: 50000 },
data: '0x9c4d535b00000000000000000000000000000000000000000000000000000000000000000100066b3680ece8c3ceacf63973a640204122fc67cb65c0b88965554543cb0e00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000',
type: 113,
to: Promise { '0x0000000000000000000000000000000000008006' },
from: '0xbD3ec8845EF5281079******2b00810c443f4a20',
nonce: Promise { 0 },
gasLimit: Promise { [Circular *1] },
chainId: Promise { 324 }
}
Apr 2, 2023, 10:09 PM
Share your deployment script
Apr 2, 2023, 10:14 PM
Apr 2, 2023, 10:16 PM

© 2024 Draquery.com All rights reserved.