requestNetwork icon indicating copy to clipboard operation
requestNetwork copied to clipboard

`hasSufficientFunds` props confuse builders

Open aimensahnoun opened this issue 1 year ago • 1 comments

  • hasSufficientFunds takes in an object as a prop, but our docs show normal input.
  • hasSufficientFunds prop naming confuses the builders
hasSufficientFunds({
  request,
  address,
  providerOptions,
  needsGas = true,
}: {
  request: ClientTypes.IRequestData;
  address: string;
  providerOptions?: {
    provider?: providers.Provider;
    nearWalletConnection?: WalletConnection;
  };
  needsGas?: boolean;
}): Promise<boolean> 

Where it says it takes in request, but it actually means requestData. Builders would pass in the request with current format.

aimensahnoun avatar Dec 10 '24 14:12 aimensahnoun

hasSufficientFunds takes in an object as a prop, but our docs show normal input.

This is a bug.

MantisClone avatar Mar 03 '25 15:03 MantisClone