Skip to content

Commit

Permalink
Merge branch 'master' into svm-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaree authored Dec 4, 2024
2 parents af4c107 + 739e2d0 commit 401e24c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"pre-commit-hook": "sh scripts/preCommitHook.sh"
},
"dependencies": {
"@across-protocol/constants": "^3.1.19",
"@across-protocol/constants": "^3.1.20",
"@coral-xyz/anchor": "^0.30.1",
"@defi-wonderland/smock": "^2.3.4",
"@eth-optimism/contracts": "^0.5.40",
Expand Down
3 changes: 2 additions & 1 deletion test/svm/SvmSpoke.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { SvmSpoke } from "../../target/types/svm_spoke";
import { evmAddressToPublicKey } from "../../src/SvmUtils";
import { assert } from "chai";
import { SlowFillLeaf } from "./utils";
import { randomBytes } from "crypto";

const provider = anchor.AnchorProvider.env();
const program = anchor.workspace.SvmSpoke as Program<SvmSpoke>;
Expand Down Expand Up @@ -41,7 +42,7 @@ const initializeState = async (
fillDeadlineBuffer: BN;
}
) => {
const actualSeed = seed || new BN(Math.floor(Math.random() * 1000000));
const actualSeed = seed || new BN(randomBytes(8).toString("hex"), 16); // Generate a random u64
const seeds = [Buffer.from("state"), actualSeed.toArrayLike(Buffer, "le", 8)];
const [state] = PublicKey.findProgramAddressSync(seeds, program.programId);
if (!initialState) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@across-protocol/constants@^3.1.19":
version "3.1.19"
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.19.tgz#3c29b52ec5f2eece93a6abd50d580668b03dd7b3"
integrity sha512-XOFF+o64TDn57xNfUB38kWy8lYyE9lB7PBdyoMOadsXx00HC3KMznFi/paLRKT1iZ50vDwHp00tNZbr7Z7umzA==
"@across-protocol/constants@^3.1.20":
version "3.1.20"
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.20.tgz#305bd41f5644b7db5d9fd12a6a6b4bbbbe2fd016"
integrity sha512-B5RsvuOQsZdFgLk0WcFZGmoivm6g6gv95a+YKVBydcxZkNxAsyP065UQEDAmvRXvPhqGyehhd52515Xa/3bzyg==

"@across-protocol/contracts@^0.1.4":
version "0.1.4"
Expand Down

0 comments on commit 401e24c

Please sign in to comment.