Skip to content

Commit

Permalink
fix type read only (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey authored May 27, 2024
1 parent cce23be commit 45d6b0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/massa-web3/src/experimental/client/publicAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export class PublicAPI {
}

return {
value: (res.result.Ok as unknown as Uint8Array) ?? null,
// @ts-expect-error - wrong type returned by the API interface
value: new Uint8Array(res.result.Ok),
info: {
gasCost: res.gas_cost,
error: res.result.Error,
Expand Down

1 comment on commit 45d6b0b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report for experimental massa-web3

St.
Category Percentage Covered / Total
🟢 Statements 83.81% 911/1087
🟡 Branches 73.87% 164/222
🟢 Functions 84.21% 176/209
🟢 Lines 83.96% 911/1085

Test suite run success

118 tests passing in 12 suites.

Report generated by 🧪jest coverage report action from 45d6b0b

Please sign in to comment.