Skip to content

Commit

Permalink
update cancel return type
Browse files Browse the repository at this point in the history
  • Loading branch information
modship committed Sep 2, 2024
1 parent c301db1 commit 0b99297
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assembly/env/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,5 @@ export namespace env {
export declare function deferredCallExists(callId: string): bool;

@external("massa", "assembly_script_deferred_call_cancel")
export declare function deferredCallCancel(callId: string): void;
export declare function deferredCallCancel(callId: string): bool;
}
6 changes: 4 additions & 2 deletions assembly/std/deferredCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export function deferredCallExists(ascCallId: string): bool {
* Cancel an deferred call
*
* @param ascCallId - The id of the deferred call
*
* @returns True if the deferred call has been canceled otherwise false
*/
export function deferredCallCancel(ascCallId: string): void {
env.deferredCallCancel(ascCallId);
export function deferredCallCancel(ascCallId: string): bool {
return env.deferredCallCancel(ascCallId);
}

0 comments on commit 0b99297

Please sign in to comment.