Skip to content
Snippets Groups Projects
Commit 80e96819 authored by Mahdi Yari's avatar Mahdi Yari
Browse files

fix accountHistory

parent 50f57eb5
No related branches found
No related tags found
1 merge request!20Fix account history
...@@ -43,6 +43,10 @@ class Hive extends EventEmitter { ...@@ -43,6 +43,10 @@ class Hive extends EventEmitter {
}; };
this[methodName] = (...args) => { this[methodName] = (...args) => {
if (methodName === 'getAccountHistory' && args.length < 5) {
methodParams.pop();
methodParams.pop();
}
const options = methodParams.reduce((memo, param, i) => { const options = methodParams.reduce((memo, param, i) => {
memo[param] = args[i]; // eslint-disable-line no-param-reassign memo[param] = args[i]; // eslint-disable-line no-param-reassign
return memo; return memo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment