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
0
votes
1answer
178 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 ...
2
votes
1answer
430 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 ...
0
votes
0answers
19 views

Is an ERC721 Token an Instance of a Contract?

I'm new to smart contracts and I would like to get my head around the concept of "tokens". From what I understand tokens are defined by smart contracts. So one could say, "This token is ...
0
votes
1answer
380 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 ...
11
votes
2answers
1k 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 ...
1
vote
2answers
359 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. ...
4
votes
1answer
134 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: * ...
1
vote
1answer
124 views

Error installing zos-lib@2.4.0

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/...
0
votes
1answer
66 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?
2
votes
1answer
1k 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 ...
4
votes
1answer
57 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.
2
votes
1answer
153 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 ...
4
votes
2answers
653 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 ...
1
vote
1answer
245 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 ...
0
votes
2answers
172 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/...
1
vote
1answer
147 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 ...
2
votes
0answers
118 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"...
1
vote
0answers
155 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 ...