Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update read coins field #616

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/massa-web3/open_rpc/massa.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -3141,8 +3141,7 @@
"description": "Included in case of success. The result of the execution",
"type": "array",
"items": {
"format": "byte",
"type": "string"
"type": "number"
}
},
"Error": {
Expand Down
7 changes: 3 additions & 4 deletions packages/massa-web3/src/experimental/client/publicAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export class PublicAPI {
target_function: params.func,
parameter: params.parameter ? Array.from(params.parameter) : [],
caller_address: params.caller.toString(),
coins: params.coins ? Mas.toString(params.coins) : null,
fee: params.fee ? Mas.toString(params.fee) : null,
coins: params.coins ? params.coins.toString() : null,
fee: params.fee ? params.fee.toString() : null,
},
])

Expand All @@ -103,8 +103,7 @@ export class PublicAPI {
}

return {
// @ts-expect-error - wrong type returned by the API interface
value: new Uint8Array(res.result.Ok),
value: new Uint8Array(res.result.Ok || []),
info: {
gasCost: res.gas_cost,
error: res.result.Error,
Expand Down
17 changes: 9 additions & 8 deletions packages/massa-web3/src/experimental/generated/client.ts

Large diffs are not rendered by default.

Loading