Skip to content

Commit 830af28

Browse files
authored
fix: fix typos (#5)
1 parent efe4004 commit 830af28

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ async function main() {
3737
label: "getRequestByID | Get request data by request id",
3838
},
3939
{
40-
value: "getRequestsByWalletAdderess",
40+
value: "getRequestsByWalletAddress",
4141
label:
42-
"getRequestsByWalletAdderess | Get requests data that belong to a wallet address",
42+
"getRequestsByWalletAddress | Get requests data that belong to a wallet address",
4343
},
4444
];
4545

src/injector.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
payRequestMethod,
1717
persistInMemoryRequestMethod,
1818
getRequestByIDMethod,
19-
getRequestsByWalletAdderessMethod,
19+
getRequestsByWalletAddressMethod,
2020
} from "./methods";
2121
import { typesContent } from "./types";
2222
import { esmToCommonjs } from "./utils/esmToCommonjs";
@@ -65,8 +65,8 @@ const functionInfoMap: { [key: string]: FunctionInfo } = {
6565
imports: ["RequestNetwork"],
6666
packages: ["@requestnetwork/request-client.js"],
6767
},
68-
getRequestsByWalletAdderess: {
69-
implementation: getRequestsByWalletAdderessMethod,
68+
getRequestsByWalletAddress: {
69+
implementation: getRequestsByWalletAddressMethod,
7070
jsDoc: getRequestsByWalletAddressJSDoc,
7171
imports: ["RequestNetwork"],
7272
packages: ["@requestnetwork/request-client.js"],

src/methods/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export const getRequestByIDMethod = `export async function getRequestByID(reques
196196
}
197197
`;
198198

199-
export const getRequestsByWalletAdderessMethod = `export async function getRequestsByWalletAdderess(walletAddress: string) {
199+
export const getRequestsByWalletAddressMethod = `export async function getRequestsByWalletAddress(walletAddress: string) {
200200
const requestClient = new RequestNetwork({
201201
nodeConnectionConfig: {
202202
baseURL: "https://gnosis.gateway.request.network",

src/methods/jsDoc.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const payRequestJSDoc = `
8383
* @param {any} [params.inMemoryRequest] - The in-memory request object (required if requestId is not provided).
8484
* @param {any} params.signer - The signer object for transaction signing.
8585
* @param {any} params.provider - The provider object for blockchain interaction.
86-
* @param {number} [params.confirmationBlocks=2] - The number of blocks to wait for confirmation.
86+
* @param {number} [params.confirmationBlocks=2] - The number of blocks to wait for confirmation (optional, default is 2).
8787
*
8888
* @returns {Promise<Object>} A promise that resolves to the payment transaction object.
8989
*
@@ -103,14 +103,14 @@ export const payRequestJSDoc = `
103103
* const paymentTx = await payRequest({
104104
* inMemoryRequest: inMemoryRequestObject,
105105
* signer: web3Signer,
106-
* provider: web3Provider,
107-
* confirmationBlocks: 3
106+
* provider: web3Provider
108107
* });
109108
*
110109
* // The payment transaction has been processed and confirmed
111110
* console.log('Payment transaction:', paymentTx);
112111
*/
113112
`;
113+
114114
export const persistInMemoryRequestJSDoc = `
115115
/**
116116
* Persists an in-memory request to the Request Network.
@@ -144,7 +144,7 @@ export const getRequestsByWalletAddressJSDoc = `
144144
* @returns {Promise<Array<Object>>} A promise that resolves to an array of request data objects.
145145
*
146146
* @example
147-
* const requests = await getRequestsByWalletAdderess('0x5678...');
147+
* const requests = await getRequestsByWalletAddress('0x5678...');
148148
* console.log('Number of requests:', requests.length);
149149
* requests.forEach(request => console.log('Request:', request));
150150
*/

0 commit comments

Comments
 (0)