requestNetwork
requestNetwork copied to clipboard
`hasSufficientFunds` props confuse builders
-
hasSufficientFundstakes in an object as a prop, but our docs show normal input. -
hasSufficientFundsprop 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.
hasSufficientFunds takes in an object as a prop, but our docs show normal input.
This is a bug.