Skip to content

Commit

Permalink
deferred_call from bytes to string param
Browse files Browse the repository at this point in the history
  • Loading branch information
modship committed Aug 29, 2024
1 parent ac359a6 commit c301db1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions assembly/env/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ export namespace env {
maxGas: u64,
params: StaticArray<u8>,
rawCoins: u64,
): StaticArray<u8>;
): string;

@external("massa", "assembly_script_deferred_call_exists")
export declare function deferredCallExists(callId: StaticArray<u8>): bool;
export declare function deferredCallExists(callId: string): bool;

@external("massa", "assembly_script_deferred_call_cancel")
export declare function deferredCallCancel(callId: StaticArray<u8>): void;
export declare function deferredCallCancel(callId: string): void;
}
6 changes: 3 additions & 3 deletions assembly/std/deferredCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function deferredCallRegister(
maxGas: u64,
params: StaticArray<u8>,
rawCoins: u64,
): StaticArray<u8> {
): string {
return env.deferredCallRegister(
targetAddress,
targetFunction,
Expand All @@ -70,7 +70,7 @@ export function deferredCallRegister(
*
* @returns True if the deferred call exists otherwise false
*/
export function deferredCallExists(ascCallId: StaticArray<u8>): bool {
export function deferredCallExists(ascCallId: string): bool {
return env.deferredCallExists(ascCallId);
}

Expand All @@ -79,6 +79,6 @@ export function deferredCallExists(ascCallId: StaticArray<u8>): bool {
*
* @param ascCallId - The id of the deferred call
*/
export function deferredCallCancel(ascCallId: StaticArray<u8>): void {
export function deferredCallCancel(ascCallId: string): void {
env.deferredCallCancel(ascCallId);
}

0 comments on commit c301db1

Please sign in to comment.