Skip to content

Commit

Permalink
Adding automated anvil testing client creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
iainnash committed Nov 8, 2023
1 parent 215511a commit 28070ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/protocol-sdk/src/anvil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ async function waitForAnvilInit(anvil: any) {
}

export const anvilTest = test.extend<AnvilViemClientsTest>({
viemClients: async ({task}, use) => {
console.log('setting up clients for ', task.name);
viemClients: async ({ task }, use) => {
const port = Math.floor(Math.random() * 2000) + 4000;
const anvil = spawn(
"anvil",
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-sdk/src/mint/mint-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class MintClient extends ClientBase {
mintable: MintableGetTokenResponse;
minterAccount: Address;
mintArguments: MintArguments;
}) {
}): Promise<{simulateContractParameters: SimulateContractParameters}> {
if (!mintable) {
throw new MintError("No mintable found");
}
Expand Down

0 comments on commit 28070ef

Please sign in to comment.