Hello! Can anyone share experience and information on the topic of "contract verification"? Interested in what tools are there for variation through JS.
Maybe someone used it on real projects and can share the repository? Thanks a lot!
Mar 15, 2022, 7:08 PM
hardhat-etherscan plugin allow you to verify the code
https://hardhat.org/plugins/nomiclabs-hardhat-etherscan.html
Mar 15, 2022, 7:38 PM
Can you help me? I try to verify contract with hardhat to rinkeby network, and get this error. Maybe I'm specifying the wrong network data? Does anyone know the correct information?
Mar 16, 2022, 12:48 PM
did u deployed the contract with hardhat?
Mar 16, 2022, 12:51 PM
no
Mar 16, 2022, 12:51 PM
immediately it seems that the accounts look strange
Mar 16, 2022, 12:51 PM
does it matter?
Mar 16, 2022, 12:51 PM
yes
atleast it does on truffle, try to deploy and verify
Mar 16, 2022, 12:52 PM
its list of 2 Secret key
Mar 16, 2022, 12:52 PM
List private keys
Mar 16, 2022, 12:52 PM
Mar 16, 2022, 12:52 PM
if you for example deployed via remix maybe u also used a different compiler version than u have on hardhat config
Mar 16, 2022, 12:52 PM
Stop talking.
Mar 16, 2022, 12:53 PM
Write accounts: accounts
Json
Mar 16, 2022, 12:53 PM
lol dont send private keys over here
Mar 16, 2022, 12:53 PM
i cut off the end
Mar 16, 2022, 12:54 PM
{
ā¦
Accounts: accounts
ā¦
}
ā¦
Accounts: accounts
ā¦
}
Mar 16, 2022, 12:54 PM
Like this u mean?
Mar 16, 2022, 12:55 PM
Here, yes
Mar 16, 2022, 12:56 PM
did not help(
Mar 16, 2022, 12:56 PM
Try 1 private key
And send error
Mar 16, 2022, 12:56 PM
the hardhat recompiles the contracts locally before verify them. I deployed with ethereum-waffle
it requires a list
Mar 16, 2022, 1:00 PM
as it says on the error, you need to define it as accounts: []
where account is your pk
where account is your pk
(yes i forgot to add the polygonscan API key on secrets file so i replaced it by that fancy API KEY lol)
Mar 16, 2022, 1:14 PM
I did everything like you, but the error is the same...
Mar 16, 2022, 1:18 PM
which contract are you trying to deploy? i had that problem a few days ago and my problem was i was trying to verify proxy addres instead of implementation
Mar 16, 2022, 1:19 PM
this is a regular token contract. There are no arguments even in the constructor.
Mar 16, 2022, 1:21 PM
actually that day i ended using remix flattener and i verified it manually on etherscan lol
mmmm my only guess right now is to remove artifacts cache and .openzeppelin folder if they exist and deploy + verify again
Mar 16, 2022, 1:21 PM
there are too many contracts in my project and I would like to make automatic verify for them
ok, I'll try to deploy them with a hardhat
yes man you were really right! It was necessary to deploy it through a hardhat! Thanks a lot! Respect
Mar 16, 2022, 1:29 PM
š»
transferFrom works if the contract has enough allowance of tokens to send them
if you want to make infinite approval you need to use the max valid amount for uint256
so you can type that monstruosity of number or you can do uint256(-1)
jk
š
wait the meme is incel not virgin, mb hahahahaha
Mar 16, 2022, 1:51 PM
Hello, can someone explain the purpose of the EIP-165 ... I can not understand what it is for.
Mar 16, 2022, 2:38 PM
It's for introspection, to be able to query a contract to see if it supports a particular interface
Mar 16, 2022, 2:39 PM
for example, we can use loop on Ethereum
thanks
Mar 16, 2022, 2:43 PM
np
Mar 16, 2022, 2:43 PM
Thanks, but ... For example,why does the token of the EPC-1155 standard need such an opportunity
Mar 16, 2022, 3:04 PM
For instance, if you didn't know if a particular token implemented erc1155, you could use introspection to find out
Mar 16, 2022, 3:06 PM
and by the received bytes I will be able to judge?
Mar 16, 2022, 3:08 PM
The supportsInterface function of erc165 simply returns a bool, whether the contract supports the interface or not
Mar 16, 2022, 3:09 PM
returns a book?)
Mar 16, 2022, 3:09 PM
Bool...typo
Mar 16, 2022, 3:09 PM
oh. Understand)
Mar 16, 2022, 3:10 PM
Otherwise you could just arbitrarily change the price
Mar 16, 2022, 3:14 PM