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
0
votes
0 answers

Overloading of Solidity contract function not working in upgradeable/proxy implementation

I've overloaded a function in a consequent upgradeable Solidity contract implementation. In previous implementation the function was: function example() external { ... } In new implementation overloaded function was added: function example(uint…
AndCode
  • 384
  • 1
  • 10
0
votes
0 answers

How to write a offchain method for Clones.predictDeterministicAddress(erc20TokenImplementation, salt);

I want to write javascript method for same function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { assembly { let ptr := mload(0x40) …
0
votes
1 answer

import @Openzeppelin/contrancts string literal (path) error

I am new at web3 and I am trying to fix this problem. it is about openzeppelin/contracts import error "Expected string literal (path), "" or alias list." and this is the error definition. I install openzeppelin/contracts but this problem was never…
0
votes
1 answer

Can't verify ERC20/BEP20 token on BSCScan

I deployed an ERC20/BEP20 token on binance smart chain using truffle and openzepplin. Now I want to verify this smart contract but I have some issues. $ truffle run verify MyToken --network bsc Verifying MyToken Unable to process the…
Milad Jafari
  • 1,135
  • 1
  • 11
  • 28
0
votes
2 answers

Ethernaut challenge -Lv22 Dex - allowance approval problem

I'm trying to complete the Dex level of ethernaut challenge which is quite easy. In order to use swap I need firstly to approve token allowance, but I don't understand why when I call the approve function metamask get stucked without giving me any…
Roberto
  • 11
0
votes
2 answers

There is a way to transfer / mint tokens without ERC20 owner approval method?

I trying to understand how crowdsale work in this way of buying tokens. The part of send ether to a contract is ok, but the part of token transfer is still dark for me. I have a ERC20Mintable token, in the latest version of openzeppelin. My…
0
votes
1 answer

Developing NFT contract and receiveing external transactions

I'm developing simple app for nft contracts. Got stucked at receving external transactions. Contract: // SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import…
Cawa
  • 1,269
  • 3
  • 25
  • 44
0
votes
1 answer

Transparent proxy tests - Error: missing revert data in call exception; Transaction reverted without a reason string;

I am trying to create a new token contract using the ERC20 Upgradeable contracts provided from Openzeppelin (OZ). I created the token contract and then made some basic unit tests. However, in one of the tests, I expect to see…
Vitomir
  • 335
  • 2
  • 15
0
votes
1 answer

Error during minting with code from Opensea guide

I'm trying to deploy my first SmartContract following the Opensea guide. Everything was working fine until I set a price for my tokens and added the payable keyword. Now when I try to mint, I get the error Transaction value did not equal the mint…
cronoklee
  • 6,482
  • 9
  • 52
  • 80
0
votes
1 answer

Upgreadable ERC20 TypeError: Cannot create property 'kind' on string

I created 2 smart contracts. contract A is ERC20 token and B is a contract that accepts ERC20 A as payment method. When deploying, contract A got deployed but when I passed its proxy address to the initialize function in contract B for deployment it…
kool Erick
  • 101
  • 1
  • 6
0
votes
1 answer

OpenZeppelin's ownable contract vs require msg.sender

I am currently learning solidity through CryptoZombies and I came across a point where they say ,"setKittyContractAddress is external", so anyone can call it! That means anyone who called the function could change the address of the CryptoKitties…
0
votes
1 answer

Why is my NFT metadata not showing on opensea?

I am developing a NFT contract on ETH using open Zeppelin, and reached the stage where, I am deploy on rinkeby. However there appears to an issue with the tokenURI and contractURI as the image and metadata is not showing on opensea. I implement the…
Joby Ingram-Dodd
  • 730
  • 5
  • 23
0
votes
1 answer

How to do multicall in Solidity with abi.encodeWIthSelector with parameters?

Need help. I got the following error: Error: VM Exception while processing transaction: reverted with reason string 'multi call failed' at RoleMultiCall.multiCall (contracts/optional/RoleMultiCall.sol:21) at async…
0x75aaa
  • 45
  • 6
0
votes
1 answer

Versioning issues with solidity and openzeppelin

I'm trying to run truffle test in a project I've just been handed. I googled on the TypeErrors and found that it's probably due to the wrong solidity being used, so I tried downgrading ethers which installed the latest to 5.0.31, without success as…
Cookie
  • 364
  • 1
  • 2
  • 12
0
votes
1 answer

Can't understand EC20Capped and use of constructor in my Token

Here is the contract I created, I created this contract through the use of openzeppelin and through some google help. As I am new in Blockchain I do not understand the depth of my contract. Everything is working correctly as I think.The contract…