Skip to content

Commit

Permalink
Fix solana Transfers SOL to another chain test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex99y committed Jan 20, 2025
1 parent 23c1904 commit 67f4575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solana/tests/token-bridge-relayer-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ describe('Token Bridge Relayer Program', () => {

it('Transfers SOL to another chain', async () => {
const tokenAccount = await $.wrapSol(unauthorizedClient.signer, 1_000_000);
const gasDropoffAmount = 5;
const gasDropoffAmount = 0.000005;
const unwrapIntent = false; // Does not matter anyway
const transferredAmount = 123789n;

Expand Down Expand Up @@ -486,7 +486,7 @@ describe('Token Bridge Relayer Program', () => {

expect(vaa.payload.payload.recipient).deep.equal(foreignAddress);
// We need to divide by 1 million because it's deserialized as the token, not µToken:
expect(vaa.payload.payload.gasDropoff).equal(gasDropoffAmount / 1_000_000);
expect(vaa.payload.payload.gasDropoff).equal(gasDropoffAmount);
expect(vaa.payload.payload.unwrapIntent).equal(unwrapIntent);
});

Expand Down

0 comments on commit 67f4575

Please sign in to comment.