Questions tagged [openzeppelin]

OpenZeppelin provides tools to write, deploy and operate decentralized applications. It also protects leading organizations by performing security audits on their systems and products.

OpenZeppelin provides tools to write, deploy and operate decentralized applications.

It also protects leading organizations by performing security audits on their systems and products.

237 questions
-1
votes
1 answer

Installing OpenZeppelin Dependencies in Brownie

In my brownie project, I want to install OpenZepplin dependencies. I have included the dependency in the config file, but Brownie is not automatically installing them. What am I doing wrong? enter image description here I tried hitting brownie…
-1
votes
1 answer

Minimal ERC20 contract for testing

I was searching for minimal ERC20 token implementation. The OpenZeppelin's ERC20 contract with all of these extension layers is too big for students tutoring interface IERC20 { event Transfer(address indexed from, address indexed to, uint256…
Petr Tripolsky
  • 1,419
  • 15
  • 23
-1
votes
1 answer

what is difference between transfer event of Mint function and Transfer function of ERC20 Smart Contract?

what is difference between transfer event of Mint function and Transfer function of ERC20 Smart Contract ? I know that in Transfer event of Mint a from address is address(0) while in Transfer there is address of sender but not zero. I am expecting a…
-1
votes
1 answer

How to deploy an upgradable erc20

I have a simple ERC20Upgradable: import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import…
Ritzy Dev
  • 387
  • 3
  • 10
-1
votes
3 answers

Not able to import openzeplin/contract and use it in my solidity code?

I have successfully installed openzeppelin/contracts, but I am unable to import it. It shows me an error which is Source "@openzeppelin/contracts/access/Ownable.sol" not found: File import callback not supported Does anyone have any idea?
-1
votes
1 answer

How to use Chainlink AggregatorV3Interface with UUPSUpgradeable?

Will Chainlink's AggregatorV3Interface.sol work with an OpenZeppelin upgradable contract? Do I place the "priceFeed = AggregatorV3Interface(0x9326BFA02ADD2366b30bacB125260Af641031331);" inside the "initializer{}"? I would like the address…
-1
votes
1 answer

Ethereum is stuck in the deployed smart contract, any way to withdraw it?

I deployed a beta version of an NFT project, however, some people who were not in the whitelist got their eth stuck in the smart contract, now I need to refund them by withdrawing the eth in the smart contract since I do not have any money with me,…
kool Erick
  • 101
  • 1
  • 6
-2
votes
1 answer

Parser Error of import Openzeppelin while compiling solidity code

Retrieving compiler information: Compiler using remote version: 'latest', solidity version: 0.8.17+commit.8df45f5f.Emscripten.clang ParserError: Expected string literal (path), "*" or alias list. -->…
-2
votes
1 answer

I am not able to understand how to use IVotes contract address in GovernorVotes contract

As IVotes is a interface and cannot be deployed. IVotes public immutable token; constructor(IVotes tokenAddress) { token = tokenAddress; } .... Error: *** Deployment Failed *** "IVotes" is an abstract contract or an interface…
-2
votes
1 answer

i am unable to use _totalSupply and _balances any private data type in OpenZeppelin and shows Undeclared identifier in solidity

Hey i am unable to implement _totalSupply and _balances in Remix but able to use remaining functions like name() and decimal() and symbol() this is my code pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract…
-2
votes
1 answer

How to burn erc721 token?

I am trying to burn erc721 token. I have inherited ERC721Burnable contract,but the transaction gets failed.While debugging I found that in ERC721URIStorage contract,it reverts back at: if (bytes(_tokenURIs[tokenId]).length != 0) { delete…
Udit Yadav
  • 99
  • 1
  • 7
-2
votes
1 answer

Chainlink NFT: Unable to update Metadata on Rinkeby Opensea

Hi I was was trying out the Chainlink Dynamic Truffle NFT project following along the video https://www.youtube.com/watch?v=EzZEx0lumr0&t=224s The goal of this contract is to use the VRF random number generator and then create random characters. I…
1 2 3
15
16