Skip to content

Commit 50dba6e

Browse files
committed
refactor: change comment and function name
1 parent 7a0177b commit 50dba6e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

snippets/src/sendEscrow.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
/* eslint-disable new-cap -- kjifnuwie. */
21
import {
32
AccountObjectsRequest,
43
Client,
54
EscrowCreate,
65
EscrowFinish,
7-
ISOTimeToRippleTime,
6+
isoTimeToRippleTime,
87
} from '../../dist/npm'
98

109
const client = new Client('wss://s.altnet.rippletest.net:51233')
@@ -24,8 +23,7 @@ async function sendEscrow(): Promise<void> {
2423
)
2524

2625
// finish 2 seconds after the escrow is actually created and tx is validated.
27-
const finishAfter = ISOTimeToRippleTime(Date()) + 2
28-
console.log(finishAfter, ISOTimeToRippleTime(Date()), Date())
26+
const finishAfter = isoTimeToRippleTime(Date()) + 2
2927

3028
const createTx: EscrowCreate = {
3129
TransactionType: 'EscrowCreate',
@@ -53,7 +51,6 @@ async function sendEscrow(): Promise<void> {
5351
console.log("Escrow object exists in `wallet1`'s account")
5452
console.log(accountObjects)
5553

56-
// console.log(finishAfter, ISOTimeToRippleTime(Date()), Date())
5754
const finishTx: EscrowFinish = {
5855
TransactionType: 'EscrowFinish',
5956
Account: wallet1.classicAddress,

0 commit comments

Comments
 (0)