Questions tagged [verify]
The verify tag has no usage guidance.
128
questions
0
votes
0
answers
20
views
Different bytecodes when verifying contract on Etherscan Goerli for code from OpenZeppelin Wizard
I went to https://wizard.openzeppelin.com to generate an ERC20 contract and then pasted the contract on Remix and deployed on Goerli. Then, I flattened the same code and tried to verify it on Goerli ...
0
votes
0
answers
32
views
Foundry: Veirfy contracts on deployment with config in foundry.toml
Ok so I'm using Foundry to deploy contracts to multiple networks (Ethereum and L2s). I use the --verify option to verify on deployment. On goerli network the contracts get verified automatically on ...
0
votes
1
answer
16
views
How can I verify & publish source code on bscscan?
Can someone please help me verify & publish the source code for this token?
I keep getting error message saying invalid constructor arguments (please make sure they are in ABI encoded format).
...
0
votes
1
answer
30
views
I cant verify my contract. It is very basic code
I cant verify my contract. It is very basic code. I cant understand why.
https://i.stack.imgur.com/tBEUl.jpg
1
vote
3
answers
130
views
I can't verify contract on etherscan because it needs abi-encoded constructor
I can't verify and check my contract on Etherscan. It asks me for the abi-encoded constructor, but I can't find it. Can someone help me, or tell me how to find the missing information? Please!
// SPDX-...
1
vote
1
answer
107
views
Having a signed tx object from mempool in js how can I rebuild raw tx data using ethersjs or web3js?
I have a pending signed tx object received through subscribe on pending transactions in js. I need to build raw tx data to be able to send it directly to the network, but the following code does not ...
0
votes
1
answer
216
views
"invalid signature length" when trying to verify signature
I'm using the entire source code to sign and verify messages from https://solidity-by-example.org/signature/ on Remix. But when I go through the process of running the functions getMessageHash, ...
0
votes
0
answers
105
views
How to get the hash in isValidSignature for ERC1271?
AFAIK, to verify a message, I need three things - message, signer wallet address and signature which is the signed message. Like when I use MyEtherWallet signing tool.
But in function isValidSignature,...
0
votes
0
answers
34
views
My ERC721 contract successfully deploys, but I can't verify the contract's source code with hardhat
I deployed my contract with npx hardhat run scripts/deploySurfaceReachT1NFT.ts --network mumbai. My deploy script looks like this:
// We require the Hardhat Runtime Environment explicitly here. This ...
0
votes
1
answer
133
views
Programmatically verification of a smart contract on a Nextjs component
I have come across a situation in my project ( Hardhat, Nextjs, TailwindCSS ) where I need to verify my smart contracts right after their deployment. Clearly, we have a mother smart contract that ...
0
votes
2
answers
104
views
Issue verifying proxy contract with linked library
I am experiencing a weird issue when verifying a Proxy Contract on Etherscan. I am using hardhat, @openzeppelin/hardhat-upgrades, and @nomiclabs/hardhat-etherscan.
The issue
Error in plugin @...
2
votes
1
answer
108
views
Contract Verify fails
This is my code for utils/verify.js
const { run } = require("hardhat")
const verify = async (contractAddress, arguments) => {
console.log("Verifying Contract... ")
try {
...
0
votes
1
answer
128
views
Verify a cloned contract
I want to deploy a contract via the clone factory pattern described here
Is there a way to verify the child cloned contract (preferably via CLI) on etherscan? I know for proxy contracts generally it ...
0
votes
1
answer
705
views
Contract verification Failed
I have two contracts Pool and PoolConfiguration, when deploying them to goerli test they both deploy successfully but when verifying on etherscan PoolConfiguration fail to verify and drops this error :...
0
votes
1
answer
193
views
How to Verify smart Contracts Using Web3.js and Solc?
everyone, I am new to web 3,I deployed smart contract successfuly and get back contract address but now I am trying to verify that the smart contract with web3 and solc .
https://www.shawntabrizi.com/...
2
votes
2
answers
150
views
Efficient way of verifying a sum of multiple numbers
If I have, let's say 1000 numbers or 10k numbers, and they all add up to 100 when combined, what would be the most efficient way to verify that in fact the sum of all of them is 100?
I was thinking on ...
4
votes
2
answers
325
views
How verify transaction data in zkrollups?
The stateroot transition is verified by witness (pre- and post- state root) and proof, but validators also should verify the transaction data which is proposed by operators.
How can verify the ...
0
votes
1
answer
422
views
Failing to Verify Contract with multiple arguments on etherscan
I am trying to verify a deployed smart contract on etherscan (goerli testnet) using the command:
npx hardhat verify --contract contracts/Contract.sol:Contract --constructor-args scripts/arguments.js --...
0
votes
1
answer
129
views
yarn hardhat verify --help error
I'm trying to get help with the command yarn hardhat verify --help.
I get the following error
yarn run v1.22.19
$ F:\Aleksey\Study\Blockchain\projects\hardhat-simple-storage-fcc\node_modules\.bin\...
0
votes
1
answer
164
views
Verify complex smart contract with Hardhat help
I have a smart contract that imports from open zeppelin contracts. I have having some trouble verifying the contract through Hardhat. The contract compiles and is deployed on goerli testnet but i get ...
0
votes
0
answers
26
views
Verify on Rinkeby doesnt work for my contract eventho all parameters are right
Hello the following code has been succesfully compiled and deployed to rinkeby(0x2e38e76bc1bf67483e5c79dfa7adb8aa66667daf) but I cant verify it. I have quadruple checked the compiler version, if ...
1
vote
1
answer
56
views
Is it proper to estimate the throughput of verification from gas limit?
EIP-2537 says pairing of k pairs cost 23000*k + 115000 gas. Gas limit per block is 30M gas, and (30M-115000)/23000 is about 1299. Does it mean that there can be at most 1299 transactions to be ...
1
vote
1
answer
49
views
Verify on etherscan
Trying to verify contract 0x0568a87e64e65f4cc7898e08f0e57ffe2aa6241f, compiler 0.8.7 with source code
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/...
0
votes
1
answer
139
views
Signature from array of tokenId's isn't verifying
The domain message is:
struct Offer{
address from;
address to;
uint256 nonce;
uint256[] tokenIds;
uint256 duration;
}
bytes32 constant ...
1
vote
2
answers
880
views
How can I verify a smart contract generated by another smart contract with some arguments?
I've created a contract factory smart contract and deployed + verified on Ropsten.
How can I verify the child-contracts on etherscan?
Parent contract: https://ropsten.etherscan.io/address/...
1
vote
1
answer
727
views
Create zkProof onchain
Is it possible to create ZK-SNARKS proofs and verify them, all onchain, with solidity, without reveling the witness?
The proving and verifying keys could be created offchain, but these two would have ...
0
votes
1
answer
373
views
Failing to verify signature
I'm trying to verify a signature using OpenZeppelin's SignatureChecker library, but always returns false. This is the verify function from the lib:
function isValidSignatureNow(
address ...
0
votes
1
answer
743
views
Contract Verification Problem on Matic using Hardhat ```npx hardhat verify --network matic```
I am trying to deploy a contract on Matic network, I have an API key set up and the proper private key for metamask in my env. ( I have deployed many contracts and verified them this way many times. ...
0
votes
1
answer
43
views
How to verify smart contract used with github link
Hello this is simple question how to verify a erc20 smart contract of github openzeppelin link?
I have erc20 token build with github openzeppelin link I want to verify it on explorer how to do it?
...
1
vote
0
answers
871
views
Call contract that's unverified [duplicate]
I am currently developing a smart contract ecosystem. I want to interact with my smart contracts on the testnets. However, I have to verify to do so. I cannot verify, as I don't want my code displayed ...
1
vote
0
answers
178
views
Verify Smart Contract ABI Encoded Avalanche
I would like to verify a smart contract with snowtrace.io explorer on Avalanche. For this I need Constructor Argument ABI-Encoded
To encode this, I use https://abi.hashex.org/
Anyway I get the error
...
0
votes
1
answer
878
views
Deployed contract with Remix, and trying to verify contract on Etherscan after few weeks but Bytecode doesn't match
I've been reading as much around this as possible, but cannot verify a contract which relies on openzeppelin imports, because the compiled bytecode differs from the deployed bytecode.
I deployed an ...
1
vote
1
answer
863
views
Automatic verification of Smart Contracts deployed from another Smart Contract
I have seen an Smart Contract that deploys new contracts, which are automatically verified in etherscan without doing anything special:
Contract contract = new Contract(a, b);
The contract is ...
1
vote
1
answer
126
views
Why do running hardhat tasks in javascript require a colon?
I am running hardhat-etherscan to auto verify smart contracts after deploying them.
According to the documentation, you add a little colon in between the word verify and add the word verify again.
...
1
vote
1
answer
1k
views
Error in plugin @nomiclabs/hardhat-etherscan: Error! Missing Or invalid Module name
Cannot verify contracts using hardhat.
On running the command - npx hardhat verify <contract_address> --network rinkeby
I get a bunch of warnings like this -
Warning: Variable is shadowed in ...
0
votes
1
answer
136
views
Verifying the signature of a transaction seems circular
I'm reading Mastering Ethereum. Around page 116 it says;
"to verify the signature one must have the signature (r and s), the serialized transaction, and the public key that corresponds to the ...
8
votes
4
answers
5k
views
Error when trying to verify contract
I'm trying to verify pn Etherscan my contract, but getting this error. What could it be?
PS C:\Projects\HardHat TS2> npx hardhat verify --network rinkeby 0x9517F72c4b61A07fd0cF684eE7A74C18Eb36dad8
...
1
vote
1
answer
340
views
How do I tell which solidity version eth-brownie is using to compile my contracts?
I'm not specifying a solidity version so I'm not sure which solidity version brownie is using to compile my contract.
I'm using pragma solidity ^0.8.0; so I'm not sure which version above 0.8.0 ...
0
votes
1
answer
174
views
Unable to validate one of two signatures that were signed the same way
I have a contract that requires two witnesses to sign. Signatures are both being generated using the same code, but I am only able to validate Witness A. Witness B is never found, always just get the ...
0
votes
0
answers
84
views
Trying to configure truffle-configure.js for truffle verify plugin
New to development. I'm trying to verify my smart contract on the testnet using the truffle verify plugin but unfortunately, I can't seem to configure the plugin in my truffle-configure.js file.
Here'...
0
votes
1
answer
425
views
Problem with "Verify & Publish Contract Source Code" on BscScan
I wanted to "Verify & Publish Contract Source Code" on BscScan, but I get this message:
ParserError: Multiple SPDX license identifiers found in source file. Use "AND" or "...
2
votes
1
answer
3k
views
Verify contract not working (not match bytecode)
Contract: https://etherscan.io/address/0xec16fed4f619aacd70c7db48327d362f675bfc29
Contract.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/...
1
vote
0
answers
313
views
import openzeplin files into contract
For an ERC-20 Pauseable, mintable, capped contract I directly used files like below.
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/...
3
votes
1
answer
1k
views
How to verify smart contracts on different solidity versions
I'd like to build my own smart contract verify system with all solidity versions both on single file and multiple files just like what etherscan or other block explorer does.
I was able to verify for ...
0
votes
1
answer
26
views
Contract is working but no "Verify and Publish"
Contract is working but no "Read Contract" and "Write Contract" and no "Code"
And no verify and publish.
So i tried coding and the Minted Tokens are correct, 100% of the ...
0
votes
0
answers
33
views
Can anyone help me to verify my coin?
Error! Unable to generate Contract ByteCode and ABI (Compiler Exception)
I get the whole time this error. I don't understand what I did wrong. Can anyone help me?
This is the contract address:
...
0
votes
0
answers
209
views
Can't verify contract on etherscan Rinkeby
So I deployed a contract, CErc20Delegator, on Rinkeby using hardhat-deploy, but I'm struggling to verify the contract on etherscan.
This is the deploy script:
const deployment = await deploy("...
2
votes
1
answer
2k
views
How to verify a signed message and that it hasn't been reused/tampered with?
I have seen this question and others but none answers my qustion.
How can I sign a message and make sure that the public key I recover is actually belongs to the private key that signed the message?
...
1
vote
1
answer
692
views
Unable to verify signature
I'm trying to get the hang of Web3 and Solidity for an upcoming project. So for now I am just fiddling around with some different things, and I have gotten myself stuck on verifying signatures. I am ...
0
votes
1
answer
265
views
Verify and Publish in BSC Scan not working
I have a contract, where I compiled it optimized in 200. When I go to publish in BSC Scan, it gives me some messages as attached. I'm informing in bsc scan the optimization in 200.
It points out ...