diff --git a/.changeset/late-mugs-kick.md b/.changeset/late-mugs-kick.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/late-mugs-kick.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/script/src/script-invocation-scope.ts b/packages/script/src/script-invocation-scope.ts index e4b4ff409a4..5caeaa7b7f6 100644 --- a/packages/script/src/script-invocation-scope.ts +++ b/packages/script/src/script-invocation-scope.ts @@ -1,13 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { FuelError } from '@fuel-ts/errors'; import type { AbstractScript } from '@fuel-ts/interfaces'; -import { - ScriptRequest, - assert, - FunctionInvocationScope, - FunctionInvocationResult, -} from '@fuel-ts/program'; -import type { InvocationScopeLike } from '@fuel-ts/program'; +import { ScriptRequest, FunctionInvocationScope } from '@fuel-ts/program'; import type { Provider } from '@fuel-ts/providers'; import { ByteArrayCoder } from '@fuel-ts/transactions'; @@ -49,24 +43,4 @@ export class ScriptInvocationScope< () => [] as unknown as TReturn ); } - - /** - * Submits a script transaction to the blockchain. - */ - async call(): Promise> { - assert(this.program.account, 'Provider is required!'); - - const transactionRequest = await this.getTransactionRequest(); - const { maxFee } = await this.getTransactionCost(); - await this.fundWithRequiredCoins(maxFee); - - const response = await this.program.account.sendTransaction(transactionRequest); - - return FunctionInvocationResult.build( - this as unknown as InvocationScopeLike, - response, - false, - this.program - ); - } }