Skip to content

Commit

Permalink
chore: bump ts-sdk (#277)
Browse files Browse the repository at this point in the history
Closes #276
  • Loading branch information
DefiCake committed Sep 5, 2024
1 parent 7f78023 commit c9989f4
Show file tree
Hide file tree
Showing 7 changed files with 179 additions and 171 deletions.
6 changes: 6 additions & 0 deletions .changeset/few-turkeys-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@fuel-bridge/fungible-token': minor
'@fuel-bridge/test-utils': minor
---

Bump ts-sdk to 0.94.4
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@fuels/eslint-plugin": "0.20.0",
"@fuels/prettier-config": "0.0.10",
"@fuels/ts-config": "0.0.10",
"fuels": "0.94.3",
"fuels": "0.94.4",
"eslint": "^8.49.0",
"prettier": "^2.7.1",
"tsup": "^7.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/fungible-token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "fuels typegen -i ./bridge-fungible-token/**/release/*-abi.json -o ./exports/types && tsup"
},
"devDependencies": {
"fuels": "0.94.3",
"fuels": "0.94.4",
"@fuel-bridge/esbuild-bin-loader": "workspace:../esbuild-bin-loader",
"@fuel-bridge/solidity-contracts": "workspace:*"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"chai": "^4.3.6",
"dotenv": "^16.0.3",
"ethers": "6.13.1",
"fuels": "0.94.3",
"fuels": "0.94.4",
"mocha": "^10.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"deploy:relay": "pnpm ts-node src/scripts/relay-deposit.ts"
},
"peerDependencies": {
"fuels": "0.94.3",
"fuels": "0.94.4",
"ethers": "6.13.1"
},
"devDependencies": {
Expand Down
17 changes: 6 additions & 11 deletions packages/test-utils/src/utils/fuels/waitForMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ import {
type Message,
BN,
AbstractAddress,
Address,
hexlify,
} from 'fuels';

import { FUEL_MESSAGE_POLL_MS } from '../constants';
import { delay } from '../delay';
import { debug } from '../logs';
import { zeroPadValue } from 'ethers';

// Wait until a message is present in the fuel client
export async function waitForMessage(
Expand All @@ -28,21 +26,18 @@ export async function waitForMessage(
);

if (gqlMessage) {
if (
gqlMessage.recipient.replace('0x', '') !==
recipient.toB256().replace('0x', '')
) {
if (gqlMessage.recipient.toB256() !== recipient.toB256()) {
return null;
}

const message: Message = {
messageId: '0x', // Message ID left uncalculated, unused in test suite
sender: Address.fromB256(zeroPadValue(gqlMessage.sender, 32)),
recipient: Address.fromB256(gqlMessage.recipient),
messageId: gqlMessage.messageId,
sender: gqlMessage.sender,
recipient: gqlMessage.recipient,
nonce: hexlify(nonce.toBytes(32)),
amount: new BN(gqlMessage.amount),
amount: gqlMessage.amount,
data: gqlMessage.data,
daHeight: new BN(gqlMessage.daHeight),
daHeight: gqlMessage.daHeight,
};

return message;
Expand Down
Loading

0 comments on commit c9989f4

Please sign in to comment.