Skip to content

Commit

Permalink
feat: update keysend args
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Mar 21, 2024
1 parent 23a5965 commit 2bf089d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ await client.sendBoostagram({
await client.keysend({
destination: nodekey,
amount: 10,
customRecords: {
custom_records: {
7629169: JSON.stringify(boostagram),
696969: "user",
},
Expand Down
4 changes: 2 additions & 2 deletions examples/keysends.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ const response = client.keysend([
amount: 10,
destination:
"03006fcf3312dae8d068ea297f58e2bd00ec1ffe214b793eda46966b6294a53ce6",
customRecords: { 34349334: "I love amboss" },
custom_records: { 34349334: "I love amboss" },
},
{
amount: 11,
destination:
"03006fcf3312dae8d068ea297f58e2bd00ec1ffe214b793eda46966b6294a53ce6",
customRecords: { 34349334: "I love amboss" },
custom_records: { 34349334: "I love amboss" },
},
]);

Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export class Client {
const params = {
destination:
"030a58b8653d32b99200a2334cfe913e51dc7d155aa0116c176657a4f1722677a3",
customRecords: {
custom_records: {
"696969": args.account,
},
amount: args.amount,
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export function keysendParamsFromBoostagram(
return {
destination: boostagramParams.recipient.address,
amount: boostagramParams.amount,
customRecords: customRecords,
custom_records: customRecords,
};
}
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export type KeysendRequestParams = {
amount: number;
destination: string;
memo?: string;
customRecords?: Record<string, string>;
custom_records?: Record<string, string>;
};

export type SendPaymentRequestParams = {
Expand Down

0 comments on commit 2bf089d

Please sign in to comment.