tantk commited on
Commit
543c521
·
1 Parent(s): 6cce677

fix: use Memo constructor instead of TransactionBuilder.memo for refund

Browse files
Files changed (1) hide show
  1. refund.js +2 -1
refund.js CHANGED
@@ -5,6 +5,7 @@ import {
5
  Operation,
6
  Asset,
7
  Horizon,
 
8
  } from "@stellar/stellar-sdk";
9
 
10
  const USDC_ISSUER = "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5";
@@ -76,7 +77,7 @@ export async function sendRefund(payerAddress, amount, memo) {
76
  amount: amount,
77
  }),
78
  )
79
- .addMemo(TransactionBuilder.memo("text", (memo || "RenderGate refund").slice(0, 28)))
80
  .setTimeout(30)
81
  .build();
82
 
 
5
  Operation,
6
  Asset,
7
  Horizon,
8
+ Memo,
9
  } from "@stellar/stellar-sdk";
10
 
11
  const USDC_ISSUER = "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5";
 
77
  amount: amount,
78
  }),
79
  )
80
+ .addMemo(new Memo("text", (memo || "RenderGate refund").slice(0, 28)))
81
  .setTimeout(30)
82
  .build();
83