Skip to content

adw0rd/solidity-create2-web3-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example of address prediction via create2:

$ truffle deploy --reset
$ truffle exec scripts/predictAddress.js

predictedAddress	: 0x0e0ba11898ebef07da013152ec9858038a0995e5 (predicted)
realAddress		: 0x0e0ba11898ebef07da013152ec9858038a0995e5 (real)

Debugging:

add debugger; anywhere in the script scripts/predictAddress.js and run this:

node inspect `which truffle` exec scripts/predictAddress.js

Articles:

About

An example for address prediction via create2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published