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
2
votes
1 answer

Is there any major difference between thegraph subgrah and openzeppelin subgraph?

As i see, they need similar scheme and manifest to create graphqlients, graph clients is also looks similar. They both can be deployed on thegraph and to the nodes. There are not so much info about openzeppelin subgraph, and i cant find any…
2
votes
0 answers

Why do my Proxy-Contracts revert with CALL_EXCEPTION when loaded via hardhat and openzeppelin-upgrades

When I deploy a proxy contract and want to call a function on the proxy, I get a revert CALL_EXCEPTION. Code to reproduce Below the code how I deploy the Contract and load it as a fixture for tests. At this time, I can successfully query the…
delete
  • 18,144
  • 15
  • 48
  • 79
2
votes
0 answers

Unable to initialize OpenZeppelin Clone contract during Hardhat Test (Error: VM Exception)

I'm trying to create clones of my implementation contract (EIP-1167) using the OpenZeppelin Clones library, however I keep getting a VM Exception Error. This is the 'Initialize' function of my Implementation contract: contract Whoopy is…
ethereumboy
  • 101
  • 1
  • 6
2
votes
1 answer

Slither cannot find the dependency with @openzeppelin

Error: Source "@openzeppelin/contracts/token/ERC721/ERC721.sol" not found: File not found. Searched the following locations: "". Currently, all dependencies from @openzeppelin are showing errors like this. But those dependencies have been installed…
Terry Windwalker
  • 1,343
  • 2
  • 16
  • 36
2
votes
1 answer

Why OpenZeppelin's ERC1155 contract is mintable from only owner?

I'm trying to build an NFT marketplace. So I wanted to create an ERC1155 smart contract to allow content creators to put their art into the smart contract. I'm using OpenZeppelins wizard as a base but I found some weirdness on the mint function.…
Mirat Can Bayrak
  • 631
  • 7
  • 18
2
votes
0 answers

ECDSA: invalid signature length error while, when using the signature provided by remix ide

i am signing messsage in remix ide, and am trying to verify the signature and data as below bytes32 hashInput=keccak256(bytes(temp)); bytes memory…
Adarsh Raj
  • 297
  • 4
  • 14
2
votes
1 answer

I'm trying to implement openzeppelin's minimal proxy clone contract on TRON blockchain

The openzeppelin minimal proxy contract here has this function predictDeterministicAddress() that hashes values like the sender's address, a salt... to generate a contract address that the create2 function will also generate, when it's passed the…
KelvinIOT
  • 325
  • 1
  • 2
  • 14
2
votes
2 answers

How to call _mint() on erc721 without emit Transfer

I've read here that it is possible to mint 2^256 nfts in a single transaction. I've tried to achieve this by directly assigning _owners and _balances mappings but ofc these are private variables so i can't change them. I tried making an _mint()…
Eduardo Robles
  • 495
  • 1
  • 5
  • 7
2
votes
1 answer

How to modify a transfer function of an ERC20 token so that it takes a fee equal to 0.0004 ether for every token transfer

As I understand I should make transfer function payable but it says "Overriding function changes state mutability from "payable" to "nonpayable".
wladknd
  • 21
  • 3
2
votes
1 answer

TypeError: nft.createToken(...) is not a function error

I created an ERC721 token using openzeppelin like this: pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import…
2
votes
2 answers

Empty Events Array on UI but works on Test | Need TokenId from Transaction

I'm working on an app that allows the user to create NFTs and list them on a market place. When I try to create the token on the UI using metamask, a createToken function is being called. The resolved promise of createToken is an object for which I…
insivika
  • 576
  • 2
  • 10
  • 21
2
votes
2 answers

Why are _initializing and isTopLevelCall variables used in Initializable contract of Openzeppelin?

This is abstract contract in the context of Proxy pattern: abstract contract Initializable { bool private _initialized; bool private _initializing; modifier initializer() { require(_initializing || !_initialized, "Initializable:…
Cengo
  • 93
  • 5
2
votes
1 answer

Solidity Function That Restricts The Public To Mint Just One ERC721 Token (NFT) With Mint Price of Zero?

I would like to to request some help in developing a mint function that restricts a public user to mint only ONE NFT with a mint price of 0 (excluding gas fees) - in the case of a promotional giveaway. Is this even possible? I would welcome any…
johnDoe
  • 709
  • 11
  • 29
2
votes
1 answer

Transaction complete, but NFT not transferred

I created a smart contract, minted an nft, and now trying to transfer it. My problem is that transaction completes fine- I can see it in etherscan etc, but nft is not transferred. What are the possible root causes? async function transferNFT() { …
Ablomis
  • 157
  • 1
  • 1
  • 6
2
votes
0 answers

Storing NFT metadata on IPFS with BaseURI, can I update the JSON dynamically for tokens when they are minted?

I'm trying to create a collection of 10,000 (ERC-721) tokens, whose metadata are stored on IPFS. Each image associated to a token would be uploaded on IPFS beforehand with its unique CDI. Since tokens will not be minted all at once, at first I want…
antodp
  • 21
  • 2
1 2
3
15 16