All Questions
Tagged with open-zeppelin or openzeppelin
238 questions
1
vote
0
answers
22
views
Polygon contract deployment transaction goes pending
I am going to deploy a small Polygon contract basically it consist standard ERC20 methods. My contract is inherited from ERC20 which is imported like
import "@openzeppelin/contracts/token/ERC20/...
0
votes
1
answer
71
views
Why does my ERC20 contract revert when calling transferFrom?
I'm writing an ERC20-based contract in Solidity 0.8.21.
When I call transferFrom, the transaction reverts even though the allowance and balance are sufficient.
Here’s a simplified example:
function ...
0
votes
2
answers
685
views
Undeclared Identifier Error for _exists() Function in Solidity Contract Using OpenZeppelin
Question Body:
I'm developing an ERC721 contract using OpenZeppelin libraries, and I'm encountering an error when calling _exists() in my Solidity contract. The error message is:
DeclarationError: ...
0
votes
0
answers
74
views
Solidity Version mismatch in Smart contract
I tried to deploy the smart contract code in Remix Ethereum IDE but I am stuck with some errors. I tried to update the version of Solidity and do I added construct function in the contract. Although ...
0
votes
1
answer
72
views
Undeclared identifier : _requireOwned(tokenId) error
I am getting below error while running the smart contract:
DeclarationError: Undeclared identifier.
--> @openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol:35:9:
|
35 | ...
0
votes
1
answer
223
views
ERC20 Upgradable Contract Deployment Timeout Issue on Local Hardhat Instance Inside Docker Desktop
The bellow shows sample code for the Smart Contract Code
SPDX-License-Identifier: MIT
pragma solidity >=0.8.9;
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol&...
0
votes
1
answer
295
views
Solidity Error: Identifier not found or not unique (UserOperation)
I'm encountering a compilation error in my Solidity code related to the UserOperation type. I'm using the BaseAccount contract from the account-abstraction library and trying to implement the ...
1
vote
0
answers
31
views
Developing a Contract to Manage Approved Token Balances
I'm currently working on developing a smart contract that allows users to approve a certain amount of ERC20 tokens, and the contract owner can fetch these approved tokens from each user individually. ...
0
votes
1
answer
481
views
Fixing "Invalid OpCode" Truffle Error with Openzeppelin Library Installed
Hi. I am new to blockchain development. I am currently using Solidity + Truffle + Ganache on VS Code. I am also using the Openzeppelin Library.
So I created this very simple contract that basically is ...
1
vote
1
answer
561
views
Conflict between @nomicfoundation/hardhat-ethers and @openzeppelin/hardhat-upgrades for ethers version
Error was shown while downloading the package, I tried updating all the packages using
npm update
to their latest verions. It didn't helped.
I also tried force installation that also didn't work.
Do ...
1
vote
0
answers
61
views
All my token storages changed to zero after a implementation
I have a ERC20 token deployed using the ERC196 Proxy using open-zeppelin contracts (Initializable, UUPSUpgradeable, OwnableUpgradeable, etc).
The problem is, the last implementation upgrade occurred ...
0
votes
1
answer
840
views
ERC1155 - Function has override specified but does not override anything
I am trying to override _update method from ERC1155 openzeppelin standard in my contract to write som additional logic but compiler somehow complains about "Function has override specified but ...
-1
votes
2
answers
108
views
How to send crypto to an upgradeable contract using a UUPS proxy?
We've decided to use the UUPS proxy module offered by OpenZeppelin for our contracts to enable future updates.
However, our contract implementation requires users to deposit crypto for some ...
0
votes
0
answers
42
views
Issue with compiling contract with OpenZeppelin
I wrote a simple contract using OpenZeppelin for ownership but I got the error message when trying to compile that ownable.sol won't compile because of the "expected pragma, import directive or ...
0
votes
0
answers
97
views
Error while compiling Solidity contract with OpenZeppelin's ERC721Enumerable.sol
I'm currently working on a Solidity smart contract that makes use of the ERC721Enumerable extension from OpenZeppelin. However, when I attempt to compile using Truffle, I encounter a ParserError.
Here'...