mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-19 19:25:51 +00:00
Fix disconnect in several js examples
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// In browsers, add the following <script> tags to the HTML to load dependencies
|
||||
// instead of using require():
|
||||
// <script src="https://unpkg.com/xrpl@2.2.0/build/xrpl-latest-min.js"></script>
|
||||
// <script src="https://unpkg.com/xrpl@2.11.0/build/xrpl-latest-min.js"></script>
|
||||
// <script src='https://cdn.jsdelivr.net/npm/bignumber.js@9.0.2/bignumber.min.js'></script>
|
||||
const xrpl = require('xrpl')
|
||||
const BigNumber = require('bignumber.js')
|
||||
@@ -15,7 +15,7 @@ async function main() {
|
||||
// ... custom code goes here
|
||||
|
||||
// Disconnect when done (If you omit this, Node.js won't end the process)
|
||||
client.disconnect()
|
||||
await client.disconnect()
|
||||
}
|
||||
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user