From c301db1b9400e179f9ec1762fb59a0d14cf90f89 Mon Sep 17 00:00:00 2001 From: modship Date: Thu, 29 Aug 2024 09:50:22 +0200 Subject: [PATCH] deferred_call from bytes to string param --- assembly/env/env.ts | 6 +++--- assembly/std/deferredCalls.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/assembly/env/env.ts b/assembly/env/env.ts index c14eb879..3181ab2a 100644 --- a/assembly/env/env.ts +++ b/assembly/env/env.ts @@ -242,11 +242,11 @@ export namespace env { maxGas: u64, params: StaticArray, rawCoins: u64, - ): StaticArray; + ): string; @external("massa", "assembly_script_deferred_call_exists") - export declare function deferredCallExists(callId: StaticArray): bool; + export declare function deferredCallExists(callId: string): bool; @external("massa", "assembly_script_deferred_call_cancel") - export declare function deferredCallCancel(callId: StaticArray): void; + export declare function deferredCallCancel(callId: string): void; } diff --git a/assembly/std/deferredCalls.ts b/assembly/std/deferredCalls.ts index 6695e201..ac388565 100644 --- a/assembly/std/deferredCalls.ts +++ b/assembly/std/deferredCalls.ts @@ -51,7 +51,7 @@ export function deferredCallRegister( maxGas: u64, params: StaticArray, rawCoins: u64, -): StaticArray { +): string { return env.deferredCallRegister( targetAddress, targetFunction, @@ -70,7 +70,7 @@ export function deferredCallRegister( * * @returns True if the deferred call exists otherwise false */ -export function deferredCallExists(ascCallId: StaticArray): bool { +export function deferredCallExists(ascCallId: string): bool { return env.deferredCallExists(ascCallId); } @@ -79,6 +79,6 @@ export function deferredCallExists(ascCallId: StaticArray): bool { * * @param ascCallId - The id of the deferred call */ -export function deferredCallCancel(ascCallId: StaticArray): void { +export function deferredCallCancel(ascCallId: string): void { env.deferredCallCancel(ascCallId); }