Skip to content

Example implementation of destructing a Solidity contract and redeploying it to the same address using the CREATE2 opcode

Notifications You must be signed in to change notification settings

petr-hejda/redeploy-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Example implementation of destructing a Solidity contract and redeploying it to the same address using the CREATE2 opcode.

Install

npm i

Test

npm test

Test result:

  Redeploy
    ✔ deploys the Factory (399ms)
Item deployed to address 0x71c220d6776032767c064020d8450ecC971aFe14
    ✔ deploys the Item
    ✔ destroys the Item
Item deployed to address 0x71c220d6776032767c064020d8450ecC971aFe14
    ✔ redeploys the Item


  4 passing (480ms)

About

Example implementation of destructing a Solidity contract and redeploying it to the same address using the CREATE2 opcode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published