hello guys can anyone tell me how i verify this ca with hardhat i don't know how i write params?
Jan 1, 2024, 4:17 PM
https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify
module.exports = [
50,
"a string argument",
{
x: 10,
y: 5,
},
// bytes have to be 0x-prefixed
"0xabcdef",
];
50,
"a string argument",
{
x: 10,
y: 5,
},
// bytes have to be 0x-prefixed
"0xabcdef",
];
Jan 1, 2024, 4:19 PM
bro i try it but not work
npx hardhat verify --network bsc "0xD542332984c79bc7A01E89394835bafFC4f18eF3" "ABC" "ABC" "18" 1000000000000000000000000000 1000000000000000000000000000000 1000000000000000000000000000 " "0x10ED43C718714eb63d5aA57B78B54704E256024E" "0x8734aDE9e11D24347E3f5Ba1D96dEC9693d0B13E" "0"
Jan 1, 2024, 4:19 PM
That’s not how you do it
Create a file for all your constructor arguments and export it
Like so
Oh wait you ain’t to verify right
Jan 1, 2024, 4:20 PM
yes i want verify it bro
Jan 1, 2024, 4:21 PM
Once you do that then you call
npx hardhat verify --constructor-args arguments.js DEPLOYED_CONTRACT_ADDRESS
npx hardhat verify --constructor-args arguments.js DEPLOYED_CONTRACT_ADDRESS
Arguments.js is whatever name you named your arguments file
Jan 1, 2024, 4:21 PM
ok thax
Jan 1, 2024, 4:22 PM