ruvnet/ruflo · error · GtBridgeError

EXECUTION_FAILED

EXECUTION_FAILED

Error message

result.error ?? 'Gas estimation failed'

What it means

estimateGas() ran the gt estimate command and execGt returned success=false or no data. The EXECUTION_FAILED wrapper prefers the underlying error text (else the generic 'Gas estimation failed') with the executed args attached.

Source

Thrown at v3/plugins/gastown-bridge/src/bridges/gt-bridge.ts:605

    if (params.data) {
      const validatedData = SafeStringSchema.parse(params.data);
      args.push('--data', validatedData);
    }

    if (params.value) {
      const validatedValue = SafeStringSchema.parse(params.value);
      args.push('--value', validatedValue);
    }

    if (params.from) {
      const validatedFrom = AddressSchema.parse(params.from);
      args.push('--from', validatedFrom);
    }

    const result = await this.execGt(args);
    if (!result.success || !result.data) {
      throw new GtBridgeError(
        result.error ?? 'Gas estimation failed',
        'EXECUTION_FAILED',
        'gt',
        args
      );
    }

    return this.parseGtOutput<GasEstimate>(result.data);
  }

  /**
   * Get transaction status
   */
  async getTxStatus(txHash: string, network?: z.infer<typeof NetworkSchema>): Promise<TxStatus> {
    this.ensureInitialized();

    const validatedHash = TxHashSchema.parse(txHash);
    const args = [

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Inspect the underlying cause in logs, fix the root issue, and retry the operation.
  2. Validate inputs and preconditions before invoking this code path so the error is avoided.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at v3/plugins/gastown-bridge/src/bridges/gt-bridge.ts:605 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/5f5f66ef55a4521e. Report an issue: GitHub.