Skip to content

Commit

Permalink
refactor: change type name from AllowanceOptions to AllowanceParams
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsdls committed Feb 10, 2024
1 parent 29d9870 commit 8cb3ccc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/thirdweb/src/extensions/erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export { balanceOf } from "./erc20/read/balanceOf.js";
export { detectDecimals, decimals } from "./erc20/read/decimals.js";
export { symbol } from "./erc20/read/symbol.js";
export { totalSupply } from "./erc20/read/totalSupply.js";
export { allowance, type AllowanceOptions } from "./erc20/read/allowance.js";
export { allowance, type AllowanceParams } from "./erc20/read/allowance.js";
// write
export { mintTo } from "./erc20/write/mintTo.js";
export { transfer } from "./erc20/write/transfer.js";
Expand Down
4 changes: 2 additions & 2 deletions packages/thirdweb/src/extensions/erc20/read/allowance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Address } from "abitype";
import { readContract } from "../../../transaction/actions/read.js";
import type { TxOpts } from "../../../transaction/transaction.js";

export type AllowanceOptions = {
export type AllowanceParams = {
owner: Address;
spender: Address;
};
Expand All @@ -18,7 +18,7 @@ export type AllowanceOptions = {
* const spenderAllowance = await allowance({ contract, owner, spender });
* ```
*/
export function allowance(options: TxOpts<AllowanceOptions>): Promise<bigint> {
export function allowance(options: TxOpts<AllowanceParams>): Promise<bigint> {
return readContract({
...options,
method:
Expand Down

0 comments on commit 8cb3ccc

Please sign in to comment.