mirror of
https://github.com/embarklabs/subspace.git
synced 2025-02-06 19:54:01 +00:00
get balance with settimeout due to weeb3 issue
This commit is contained in:
parent
679609aef8
commit
2a383a7ffd
@ -147,9 +147,12 @@ export default class Subspace {
|
||||
};
|
||||
}
|
||||
|
||||
this.web3.getBlock('latest').then(block => {
|
||||
// FIX ME: has issues immediatly getting the value
|
||||
// this.web3.getBlock('latest').then(block => {
|
||||
setTimeout(() => {
|
||||
callFn();
|
||||
});
|
||||
}, 500);
|
||||
// });
|
||||
|
||||
this.callables.push(callFn);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user