Skip to content

Commit

Permalink
Fill todo function
Browse files Browse the repository at this point in the history
  • Loading branch information
feli-xlabs committed Dec 13, 2024
1 parent b869fd3 commit ecf5120
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions core/definitions/src/testing/mocks/guardian.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import type { Chain} from "@wormhole-foundation/sdk-base";
import { guardians } from "@wormhole-foundation/sdk-base";
import type { Chain } from "@wormhole-foundation/sdk-base";
import { guardians, encoding } from "@wormhole-foundation/sdk-base";
import type { PayloadLiteral, VAA } from "../../index.js";
import {
Signature,
SignatureUtils,
createVAA,
deserialize,
serialize,
} from "../../index.js";
import { Signature, SignatureUtils, createVAA, deserialize, serialize } from "../../index.js";
import type { UniversalAddress } from "../../universalAddress.js";
import { keccak256 } from "../../utils.js";
import { computeAddress } from "ethers";

interface Guardian {
index: number;
Expand All @@ -32,7 +27,7 @@ export class MockGuardians {
}

getAddresses() {
throw new Error('todo')
return this.getPublicKeys().map((key) => computeAddress(encoding.hex.encode(key)));
}

addSignatures<P extends PayloadLiteral>(
Expand Down

0 comments on commit ecf5120

Please sign in to comment.