Skip to content

Commit

Permalink
add random salt
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolaman committed Jun 25, 2024
1 parent 9b92cf7 commit 83b1726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/sendTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function prepareDeployment(
const chainId = await context.client.chainId();
const deploymentMessage = externalDeploymentMessage(
{
salt: 100n,
salt: BigInt(Math.floor(Math.random() * 1024)),
shard: 1,
bytecode: hexStringToUint8Array(params[0].data),
},
Expand Down
2 changes: 1 addition & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function setupWalletAndClient(
const pubKey = await signer.getPublicKey();
const wallet = new WalletV1({
pubkey: pubKey,
salt: 100n,
salt: BigInt(Math.floor(Math.random() * 1024)),
shardId: 1,
client,
signer,
Expand Down

0 comments on commit 83b1726

Please sign in to comment.