Skip to content

Commit

Permalink
[faucet] Remove waitForIndexer for faucet fundAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
hariria committed Jan 24, 2024
1 parent ed792bd commit a218433
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/api/faucet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { fundAccount } from "../internal/faucet";
import { UserTransactionResponse, WaitForTransactionOptions } from "../types";
import { AccountAddressInput } from "../core";
import { AptosConfig } from "./aptosConfig";
import { waitForIndexer } from "../internal/transaction";

/**
* A class to query all `Faucet` related queries on Aptos.
Expand All @@ -28,11 +27,6 @@ export class Faucet {
options?: WaitForTransactionOptions;
}): Promise<UserTransactionResponse> {
const fundTxn = await fundAccount({ aptosConfig: this.config, ...args });

if (args.options?.waitForIndexer !== false) {
await waitForIndexer({ aptosConfig: this.config, minimumLedgerVersion: BigInt(fundTxn.version) });
}

return fundTxn;
}
}

0 comments on commit a218433

Please sign in to comment.