mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-21 12:45:50 +00:00
Fix last commit.
This commit is contained in:
@@ -163,7 +163,10 @@ Account.prototype.getNextSequence = function(callback) {
|
|||||||
var callback = typeof callback === 'function' ? callback : function(){};
|
var callback = typeof callback === 'function' ? callback : function(){};
|
||||||
|
|
||||||
function accountInfo(err, info) {
|
function accountInfo(err, info) {
|
||||||
if (err && err.error === "actNotFound") {
|
if (err &&
|
||||||
|
"object" === typeof err &&
|
||||||
|
"object" === typeof err.remote &&
|
||||||
|
err.remote.error === "actNotFound") {
|
||||||
// New accounts will start out as sequence zero
|
// New accounts will start out as sequence zero
|
||||||
callback(null, 0);
|
callback(null, 0);
|
||||||
} else if (err) {
|
} else if (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user