Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
TucksonDev committed Feb 8, 2024
1 parent ff94adc commit bd90710
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
12 changes: 9 additions & 3 deletions examples/create-token-bridge-custom-fee-token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,16 @@ async function main() {

// wait for retryables to execute
console.log(`Waiting for retryable tickets to execute on the Orbit chain...`);
const orbitChainRetryableReceipts = await txReceipt.waitForRetryables({ orbitPublicClient: orbitChainPublicClient });
const orbitChainRetryableReceipts = await txReceipt.waitForRetryables({
orbitPublicClient: orbitChainPublicClient,
});
console.log(`Retryables executed`);
console.log(`Transaction hash for first retryable is ${orbitChainRetryableReceipts[0].transactionHash}`);
console.log(`Transaction hash for second retryable is ${orbitChainRetryableReceipts[1].transactionHash}`);
console.log(
`Transaction hash for first retryable is ${orbitChainRetryableReceipts[0].transactionHash}`,
);
console.log(
`Transaction hash for second retryable is ${orbitChainRetryableReceipts[1].transactionHash}`,
);

// fetching the TokenBridge contracts
const tokenBridgeContracts = await txReceipt.getTokenBridgeContracts({
Expand Down
12 changes: 9 additions & 3 deletions examples/create-token-bridge-eth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,16 @@ async function main() {

// wait for retryables to execute
console.log(`Waiting for retryable tickets to execute on the Orbit chain...`);
const orbitChainRetryableReceipts = await txReceipt.waitForRetryables({ orbitPublicClient: orbitChainPublicClient });
const orbitChainRetryableReceipts = await txReceipt.waitForRetryables({
orbitPublicClient: orbitChainPublicClient,
});
console.log(`Retryables executed`);
console.log(`Transaction hash for first retryable is ${orbitChainRetryableReceipts[0].transactionHash}`);
console.log(`Transaction hash for second retryable is ${orbitChainRetryableReceipts[1].transactionHash}`);
console.log(
`Transaction hash for first retryable is ${orbitChainRetryableReceipts[0].transactionHash}`,
);
console.log(
`Transaction hash for second retryable is ${orbitChainRetryableReceipts[1].transactionHash}`,
);

// fetching the TokenBridge contracts
const tokenBridgeContracts = await txReceipt.getTokenBridgeContracts({
Expand Down
8 changes: 6 additions & 2 deletions src/createTokenBridge.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ it(`successfully deploys token bridge contracts through token bridge creator`, a
expect(txReceipt.status).toEqual('success');

// checking retryables execution
const orbitChainRetryableReceipts = await txReceipt.waitForRetryables({ orbitPublicClient: nitroTestnodeL2Client });
const orbitChainRetryableReceipts = await txReceipt.waitForRetryables({
orbitPublicClient: nitroTestnodeL2Client,
});
expect(orbitChainRetryableReceipts).toHaveLength(2);
expect(orbitChainRetryableReceipts[0].status).toEqual('success');
expect(orbitChainRetryableReceipts[1].status).toEqual('success');
Expand Down Expand Up @@ -279,7 +281,9 @@ it(`successfully deploys token bridge contracts with a custom fee token through
expect(txReceipt.status).toEqual('success');

// checking retryables execution
const orbitChainRetryableReceipts = await txReceipt.waitForRetryables({ orbitPublicClient: nitroTestnodeL3Client });
const orbitChainRetryableReceipts = await txReceipt.waitForRetryables({
orbitPublicClient: nitroTestnodeL3Client,
});
expect(orbitChainRetryableReceipts).toHaveLength(2);
expect(orbitChainRetryableReceipts[0].status).toEqual('success');
expect(orbitChainRetryableReceipts[1].status).toEqual('success');
Expand Down

0 comments on commit bd90710

Please sign in to comment.