Skip to content

1. Deploying an upgradeable smart contract with a bug in it. 2. Fixing the bug in our original contract, and re-deploying it. 3. Pointing our buggy function to the new, fixed function using a proxy contract.

Notifications You must be signed in to change notification settings

melkecelioglu/smart-and-proxy-contract

Repository files navigation

Getting Started

Create a project using this example:

npx thirdweb create --contract --template forge-starter

You can start editing the page by modifying contracts/Contract.sol.

To add functionality to your contracts, you can use the @thirdweb-dev/contracts package which provides base contracts and extensions to inherit. The package is already installed with this project. Head to our Contracts Extensions Docs to learn more.

Building the project

After any changes to the contract, run:

npm run build
# or
yarn build

to compile your contracts. This will also detect the Contracts Extensions Docs detected on your contract.

Deploying Contracts

When you're ready to deploy your contracts, just run one of the following command to deploy you're contracts:

npm run deploy
# or
yarn deploy

Releasing Contracts

If you want to release a version of your contracts publicly, you can use one of the followings command:

npm run release
# or
yarn release

Screenshot 2023-04-19 at 16 50 52

Join our Discord!

For any questions, suggestions, join our discord at https://discord.gg/thirdweb.

About

1. Deploying an upgradeable smart contract with a bug in it. 2. Fixing the bug in our original contract, and re-deploying it. 3. Pointing our buggy function to the new, fixed function using a proxy contract.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published