Skip to content

Commit

Permalink
style: resolve style guide violations
Browse files Browse the repository at this point in the history
  • Loading branch information
oXtxNt9U authored and github-actions[bot] committed Dec 4, 2024
1 parent bca945d commit cd4a48c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export class GenesisBlockGenerator extends Generator {
account: genesisWalletAddress,
deployerAccount: this.#deployerAddress,
initialSupply: Utils.BigNumber.make(options.premine).toBigInt(),
validatorContract: ethers.getCreateAddress({ from: genesisWalletAddress, nonce: 1 }),
usernameContract: ethers.getCreateAddress({ from: genesisWalletAddress, nonce: 3 }),
validatorContract: ethers.getCreateAddress({ from: genesisWalletAddress, nonce: 1 }),
};
await this.evm.initializeGenesis(genesisInfo);

Expand Down
5 changes: 3 additions & 2 deletions packages/evm-consensus/source/deployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ export class Deployer {
account: genesisBlock.block.generatorAddress,
deployerAccount: this.deployerAddress,
initialSupply: Utils.BigNumber.make(genesisBlock.block.totalAmount).toBigInt(),
validatorContract: ethers.getCreateAddress({ from: this.deployerAddress, nonce: 1 }), // PROXY Uses nonce 1
usernameContract: ethers.getCreateAddress({ from: this.deployerAddress, nonce: 3 }), // PROXY Uses nonce 3
// PROXY Uses nonce 1
usernameContract: ethers.getCreateAddress({ from: this.deployerAddress, nonce: 3 }),
validatorContract: ethers.getCreateAddress({ from: this.deployerAddress, nonce: 1 }), // PROXY Uses nonce 3
};

await this.evm.initializeGenesis(genesisInfo);
Expand Down
2 changes: 1 addition & 1 deletion packages/evm-service/source/instances/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class EvmInstance implements Contracts.Evm.Instance {
account: commit.account,
deployerAccount: commit.deployerAccount,
initialSupply: commit.initialSupply,
validatorContract: commit.validatorContract,
usernameContract: commit.usernameContract,
validatorContract: commit.validatorContract,
});
}

Expand Down

0 comments on commit cd4a48c

Please sign in to comment.