Skip to content

Commit

Permalink
Merge pull request #46 from anton-trunov/method-id-for-getters
Browse files Browse the repository at this point in the history
feat/fix: allow ContractProvider.get to accept numbers as method IDs
  • Loading branch information
dvlkv authored Oct 8, 2024
2 parents 8e47fe1 + 84fe5e3 commit 5726355
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 5726355

Please sign in to comment.