From 686fd67e3875ab38f38962f243869de8c6b469e6 Mon Sep 17 00:00:00 2001
From: thekiba
Date: Mon, 12 Feb 2024 01:23:38 +0400
Subject: [PATCH] feat: add open method to ContractProvider
---
src/contract/ContractProvider.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/contract/ContractProvider.ts b/src/contract/ContractProvider.ts
index f359bbb..2e578b8 100644
--- a/src/contract/ContractProvider.ts
+++ b/src/contract/ContractProvider.ts
@@ -13,6 +13,7 @@ import { TupleItem } from "../tuple/tuple";
import { Maybe } from "../utils/maybe";
import { ContractState } from "./ContractState";
import { Sender } from './Sender';
+import { Contract } from "./Contract";
export type ContractGetMethodResult = {
stack: TupleReader;
@@ -25,4 +26,5 @@ export interface ContractProvider {
get(name: string, args: TupleItem[]): Promise;
external(message: Cell): Promise;
internal(via: Sender, args: { value: bigint | string, bounce?: Maybe, sendMode?: SendMode, body?: Maybe }): Promise;
-}
\ No newline at end of file
+ open(contract: T): ContractProvider;
+}
|