mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-15 01:55:48 +00:00
Implement Remote#reserve().
This commit is contained in:
@@ -157,7 +157,9 @@ var create_accounts = function (remote, src, amount, accounts, callback) {
|
||||
.on('proposed', function (m) {
|
||||
// console.log("proposed: %s", JSON.stringify(m));
|
||||
|
||||
callback(m.result != 'tesSUCCESS');
|
||||
if (m.result != 'tesSUCCESS') {
|
||||
callback(new Error("Transaction did not succeed."));
|
||||
} else callback(null);
|
||||
})
|
||||
.on('error', function (m) {
|
||||
// console.log("error: %s", JSON.stringify(m));
|
||||
|
||||
Reference in New Issue
Block a user