Questions tagged [openzeppelin-sdk]

The OpenZeppelin SDK is a platform to develop, deploy and operate smart contract projects on Ethereum and every other EVM and eWASM-powered blockchain.

Filter by
Sorted by
Tagged with
6 votes
2 answers
2k views

How to get implementation address after deployProxy()? (@open-zepplin/hardhat-upgrades)

I'm deploying my token using the proxy pattern via hardhat-upgrades. const TokenFactory = await ethers.getContractFactory('MyToken'); const token = await upgrades.deployProxy(TokenFactory); const ...
parliament's user avatar
2 votes
1 answer
970 views

Cannot convert undefined or null to object after compile

My smart contract project has been initialised with oz init and I have a single contract. After running oz compile I get an error saying Cannot convert undefined or null to object complete output of ...
Micha Roon's user avatar
  • 2,153
0 votes
1 answer
685 views

npm install - - global @openzeppelin/cli not working

Guys I have node js and npm installed. But when I try to install OpenZeppelin sdk using the command: npm install --global @openzeppelin/cli It doesn't install. I don't know what is wrong. But I think ...
Iammrjude1's user avatar
12 votes
2 answers
2k views

Pros and Cons of smart contract upgradable patterns

There have been quite many arguments around how to achieve smart contract updates like Upgradeable smart contracts. I feel Proxycontract with Delegate-call is currently the most famous one. But aside ...
kohshiba's user avatar
  • 467
2 votes
2 answers
646 views

ERC20 not recognized by TokenTracker

I have deployed ERC20 with reference to // File: openzeppelin- zos/contracts/token/ERC20/DetailedMintableToken.sol I called the initialized function with owner, name, symbol and decimal value. ...
cryptoKTM's user avatar
  • 421
4 votes
1 answer
214 views

couldnt understand implementaion of UpgradeabilityProxyFactory

I want to use UpgradeabilityProxy provided by zeppelin, they have one method createProxyAndCall which they say initialize the new implementation with data parameter we provided which looks like: * ...
cryptoKTM's user avatar
  • 421
1 vote
1 answer
165 views

Error installing [email protected]

I am working through the tutorial for zeppelin-os found here: https://docs.zeppelinos.org/docs/linking.html and have an error when running zos create Could not find file zos-lib/contracts/...
rrbest's user avatar
  • 123
0 votes
1 answer
85 views

Issue in truffle unbox zeppelinos/zepkit

As it is visible in the screenshot, I did not get a green check in the "setting up box". Anyone know why it is happening and will it cause any issue in the future?
chakshu jain's user avatar
2 votes
1 answer
2k views

ZepplinOS: Where to set owner of the contract?

ZepplinOS contracts do not use constructors in it's zos implementation, and instead uses an initialization function that it imports from zos-lib/contracts/Initializable.sol package. In order for the ...
Nicholas Porter's user avatar
4 votes
1 answer
166 views

Does function order also matter when writing upgradeable smart contracts?

The ZeppelinOS docs clearly explain the importance of state variable order when upgrading smart contracts, but say little on whether the same rules apply to functions.
Paul Razvan Berg's user avatar
2 votes
1 answer
217 views

zeppelinOS add parameter to initialize()

I am following the zeppelinOS documentation here and sumarized you execute: zos init my-project #init zeppelinOS zos add MyContract #register zos session --network local --expires 3600 #open session ...
CodingYourLife's user avatar
5 votes
2 answers
1k views

Zeppelin OS: revert Cannot call fallback function from the proxy admin

I have been attempting to create a simple upgradable contract using Zeppelin OS: Following the tutorial I have been able to: - Create a new contract - Deploy it using zos push - Create the proxy ...
amhed's user avatar
  • 161
1 vote
1 answer
526 views

Copy state from one contract to another

I am experimenting with the zeppelin os upgradeable contracts but what I only need for my contract is to keep one specific state array when I deploy to another address. Avoiding proxy issues, upgrade ...
arisalexis's user avatar
0 votes
2 answers
211 views

Create and Run an AllowanceCrowdSale With Zeppelin-OS Contracts

I use the openzeppelin library: https://github.com/OpenZeppelin/openzeppelin-solidity/tree/v1.12.0 token I create a BurnableToken: pragma solidity 0.4.24; import 'openzeppelin-solidity/contracts/...
Andi Giga's user avatar
  • 439
1 vote
1 answer
158 views

Creating new proxy using Zeppelin OS always use the same amount of gas

I'm building upgradeable infrastructure for the project and noticed that creation of proxy using Zeppelin OS always uses the same amount of gas. How I understand, during the setting implementation ...
Mikky Snowman's user avatar
2 votes
0 answers
127 views

ZeppelinOS: zos push --network mainnet returns nonce too low

Im trying to deploy a set of contracts. These are the steps I've followed (the same steps work fine in infura v3 ropsten): zos add Result: { "name": "0.1.0", "version": "0.1.3", "contracts"...
Gus's user avatar
  • 341
1 vote
0 answers
165 views

How to Deploy non-Migratable Contract in Zeppelin OS?

I am using Zeppelin OS to create a migratable contract MyContract, which will be imported into another contract Foo. Foo calls the baz() function of MyContract, so when MyContract is upgraded, Foo ...
Nyxynyx's user avatar
  • 1,167