Skip to content

Commit

Permalink
fix: rc2 devnet create block hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Sep 4, 2024
1 parent beab631 commit 0c43390
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion __tests__/config/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ export const getTestAccount = (provider: ProviderInterface) => {

export const createBlockForDevnet = async (): Promise<void> => {
if (!(process.env.IS_DEVNET === 'true')) return;
await fetch(new URL('/create_block', process.env.TEST_RPC_URL), { method: 'POST' });
await fetch(new URL('/create_block', process.env.TEST_RPC_URL), {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: '{}',
});
};

export async function waitNextBlock(provider: RpcProvider, delay: number) {
Expand Down

0 comments on commit 0c43390

Please sign in to comment.