Skip to content

Commit

Permalink
chore!: update forc to 0.59.0 (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk authored May 17, 2024
1 parent d5116ce commit 60337b5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .changeset/seven-spoons-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@fuel-ts/abi-coder": minor
"@fuel-ts/account": minor
"@fuel-ts/forc": minor
---

chore!: update `forc` to `0.59.0`
2 changes: 1 addition & 1 deletion packages/abi-coder/src/Interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class Interface<TAbi extends JsonAbi = JsonAbi> {
return fragment.decodeOutput(data);
}

decodeLog(data: BytesLike, logId: number): any {
decodeLog(data: BytesLike, logId: string): any {
const loggedType = this.jsonAbi.loggedTypes.find((type) => type.logId === logId);
if (!loggedType) {
throw new FuelError(
Expand Down
2 changes: 1 addition & 1 deletion packages/abi-coder/src/types/JsonAbi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface JsonAbiArgument {
}

export interface JsonAbiLoggedType {
readonly logId: number;
readonly logId: string;
readonly loggedType: JsonAbiArgument;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function getDecodedLogs<T = unknown>(
? new BigNumberCoder('u64').encode(receipt.val0)
: receipt.data;

const [decodedLog] = interfaceToUse.decodeLog(data, receipt.val1.toNumber());
const [decodedLog] = interfaceToUse.decodeLog(data, receipt.val1.toString());
logs.push(decodedLog);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/forc/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.58.0
0.59.0
2 changes: 1 addition & 1 deletion packages/versions/src/lib/getBuiltinVersions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function getBuiltinVersions() {
return {
FORC: '0.58.0',
FORC: '0.59.0',
FUEL_CORE: '0.26.0',
FUELS: '0.87.0',
};
Expand Down

0 comments on commit 60337b5

Please sign in to comment.