Skip to content

Commit

Permalink
nonce to string
Browse files Browse the repository at this point in the history
  • Loading branch information
invocamanman committed Feb 10, 2023
1 parent eada98c commit 74ca070
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
20 changes: 10 additions & 10 deletions deployment/createGenesis.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async function main() {
genesis.push({
contractName: 'PolygonZkEVMDeployer',
balance: '0',
nonce: zkEVMDeployerInfo.nonce,
nonce: zkEVMDeployerInfo.nonce.toString(),
address: zkEVMDeployerContract.address,
bytecode: zkEVMDeployerInfo.bytecode,
storage: zkEVMDeployerInfo.storage,
Expand All @@ -162,7 +162,7 @@ async function main() {
genesis.push({
contractName: 'ProxyAdmin',
balance: '0',
nonce: proxyAdminInfo.nonce,
nonce: proxyAdminInfo.nonce.toString(),
address: proxyAdminAddress,
bytecode: proxyAdminInfo.bytecode,
storage: proxyAdminInfo.storage,
Expand All @@ -173,7 +173,7 @@ async function main() {
genesis.push({
contractName: 'PolygonZkEVMBridge implementation',
balance: '0',
nonce: bridgeImplementationInfo.nonce,
nonce: bridgeImplementationInfo.nonce.toString(),
address: bridgeImplementationAddress,
bytecode: bridgeImplementationInfo.bytecode,
// storage: bridgeImplementationInfo.storage, implementation do not have storage
Expand All @@ -185,7 +185,7 @@ async function main() {
genesis.push({
contractName: 'PolygonZkEVMBridge proxy',
balance: '200000000000000000000000000',
nonce: bridgeProxyInfo.nonce,
nonce: bridgeProxyInfo.nonce.toString(),
address: proxyBridgeAddress,
bytecode: bridgeProxyInfo.bytecode,
storage: bridgeProxyInfo.storage,
Expand All @@ -197,7 +197,7 @@ async function main() {
genesis.push({
contractName: 'PolygonZkEVMGlobalExitRootL2 implementation',
balance: '0',
nonce: implGlobalExitRootL2Info.nonce,
nonce: implGlobalExitRootL2Info.nonce.toString(),
address: implGlobalExitRootL2,
bytecode: implGlobalExitRootL2Info.bytecode,
// storage: implGlobalExitRootL2Info.storage, , implementation do not have storage
Expand All @@ -208,7 +208,7 @@ async function main() {
genesis.push({
contractName: 'PolygonZkEVMGlobalExitRootL2 proxy',
balance: '0',
nonce: proxyGlobalExitRootL2Info.nonce,
nonce: proxyGlobalExitRootL2Info.nonce.toString(),
address: globalExitRootL2Address, // Override address!
bytecode: proxyGlobalExitRootL2Info.bytecode,
storage: proxyGlobalExitRootL2Info.storage,
Expand Down Expand Up @@ -254,7 +254,7 @@ async function main() {
genesis.push({
contractName: 'PolygonZkEVMTimelock',
balance: '0',
nonce: timelockInfo.nonce,
nonce: timelockInfo.nonce.toString(),
address: timelockContract.address,
bytecode: timelockInfo.bytecode,
storage: timelockInfo.storage,
Expand All @@ -266,7 +266,7 @@ async function main() {
genesis.push({
accountName: 'keyless Deployer',
balance: '0',
nonce: 1,
nonce: '1',
address: keylessDeployer,
});

Expand All @@ -275,7 +275,7 @@ async function main() {
genesis.push({
accountName: 'deployer',
balance: '0',
nonce: deployerInfo.nonce,
nonce: deployerInfo.nonce.toString(),
address: deployer.address,
});

Expand All @@ -284,7 +284,7 @@ async function main() {
* genesis.push({
* accountName: 'test account',
* balance: '100000000000000000000000',
* nonce: 0,
* nonce: '0',
* address: "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
* });
*/
Expand Down
34 changes: 17 additions & 17 deletions deployment/genesis.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docker/scripts/genesis_docker.json

Large diffs are not rendered by default.

0 comments on commit 74ca070

Please sign in to comment.