From 84fe5e347bd449ab2065db8b24d0097ae6d2270f Mon Sep 17 00:00:00 2001 From: Anton Trunov Date: Mon, 7 Oct 2024 18:57:42 +0400 Subject: [PATCH] feat/fix: allow ContractProvider.get to accept numbers as method IDs Sandbox supports both strings and numbers to call getters --- src/contract/ContractProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contract/ContractProvider.ts b/src/contract/ContractProvider.ts index cebf3dd..01698fc 100644 --- a/src/contract/ContractProvider.ts +++ b/src/contract/ContractProvider.ts @@ -26,7 +26,7 @@ export type ContractGetMethodResult = { export interface ContractProvider { getState(): Promise; - get(name: string, args: TupleItem[]): Promise; + get(name: string | number, args: TupleItem[]): Promise; external(message: Cell): Promise; internal(via: Sender, args: { value: bigint | string, bounce?: Maybe, sendMode?: SendMode, body?: Maybe }): Promise; open(contract: T): OpenedContract;