mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
Remove semi-colons
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
const {RippleAPI} = require('ripple-lib');
|
||||
const {RippleAPI} = require('ripple-lib')
|
||||
|
||||
const api = new RippleAPI({
|
||||
server: 'wss://s1.ripple.com' // Public rippled server
|
||||
});
|
||||
})
|
||||
api.on('error', (errorCode, errorMessage) => {
|
||||
console.log(errorCode + ': ' + errorMessage);
|
||||
});
|
||||
console.log(errorCode + ': ' + errorMessage)
|
||||
})
|
||||
|
||||
const issuing_address = 'rUpy3eEg8rqjqfUoLeBnZkscbKbFsKXC3v';
|
||||
const issuing_secret = 'snnDVkSW3aV6jvMJTPdCiE2Qxv1RW';
|
||||
const issuing_address = 'rUpy3eEg8rqjqfUoLeBnZkscbKbFsKXC3v'
|
||||
const issuing_secret = 'snnDVkSW3aV6jvMJTPdCiE2Qxv1RW'
|
||||
// Best practice: get your secret from an encrypted
|
||||
// config file instead
|
||||
|
||||
@@ -17,20 +17,20 @@ api.connect().then(() => {
|
||||
// Prepare a settings transaction to enable no freeze
|
||||
const settings = {
|
||||
'noFreeze': true
|
||||
};
|
||||
}
|
||||
|
||||
console.log('preparing settings transaction for account:',
|
||||
issuing_address);
|
||||
return api.prepareSettings(issuing_address, settings);
|
||||
issuing_address)
|
||||
return api.prepareSettings(issuing_address, settings)
|
||||
|
||||
}).then(prepared_tx => {
|
||||
|
||||
// Sign and submit the settings transaction
|
||||
console.log('signing tx:', prepared_tx.txJSON);
|
||||
const signed1 = api.sign(prepared_tx.txJSON, issuing_secret);
|
||||
console.log('submitting tx:', signed1.id);
|
||||
console.log('signing tx:', prepared_tx.txJSON)
|
||||
const signed1 = api.sign(prepared_tx.txJSON, issuing_secret)
|
||||
console.log('submitting tx:', signed1.id)
|
||||
|
||||
return api.submit(signed1.signedTransaction);
|
||||
return api.submit(signed1.signedTransaction)
|
||||
}).then(() => {
|
||||
return api.disconnect();
|
||||
}).catch(console.error);
|
||||
return api.disconnect()
|
||||
}).catch(console.error)
|
||||
|
||||
Reference in New Issue
Block a user