Skip to content

Commit

Permalink
Fixing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
erdimaden committed Jun 24, 2024
1 parent 409127e commit 9a687e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/coinbase/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,7 @@ export type AddressAPIClient = {
* @returns The transaction hash.
* @throws {APIError} If the request fails.
*/
requestFaucetFunds(
walletId: string,
addressId: string,
): Promise<{ data: { transaction_hash: string } }>;
requestFaucetFunds(walletId: string, addressId: string): AxiosPromise<FaucetTransaction>;

/**
* Get address by onchain address.
Expand Down
1 change: 1 addition & 0 deletions src/tests/faucet_transaction_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ describe("FaucetTransaction tests", () => {
it("should create a new FaucetTransaction instance and return the transaction hash", () => {
const faucetTransaction = new FaucetTransaction({
transaction_hash: "abc",
transaction_link: "https://sepolia.basescan.org/tx/abc",
});

expect(faucetTransaction).toBeInstanceOf(FaucetTransaction);
Expand Down

0 comments on commit 9a687e5

Please sign in to comment.