Skip to content

Commit

Permalink
feat/fix: allow ContractProvider.get to accept numbers as method IDs
Browse files Browse the repository at this point in the history
Sandbox supports both strings and numbers to call getters
  • Loading branch information
anton-trunov committed Oct 7, 2024
1 parent 9c1b8f7 commit 84fe5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract/ContractProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type ContractGetMethodResult = {

export interface ContractProvider {
getState(): Promise<ContractState>;
get(name: string, args: TupleItem[]): Promise<ContractGetMethodResult>;
get(name: string | number, args: TupleItem[]): Promise<ContractGetMethodResult>;
external(message: Cell): Promise<void>;
internal(via: Sender, args: { value: bigint | string, bounce?: Maybe<boolean>, sendMode?: SendMode, body?: Maybe<Cell | string> }): Promise<void>;
open<T extends Contract>(contract: T): OpenedContract<T>;
Expand Down

0 comments on commit 84fe5e3

Please sign in to comment.