Change fetch Node info data for POST methods

This commit is contained in:
DwCay
2022-07-21 11:39:07 +03:00
parent 16a2ffca2d
commit 8955d846e4

View File

@@ -28,6 +28,8 @@ class Store {
constructor() {
makeAutoObservable(this,{});
this.fetchNodeInfo()
reaction(() => this.keysArray, () => this.fetchSharedData())
onBecomeObserved(this, "decryptedUserData", () => this.fetchNewAccountData())
onBecomeObserved(this, "sharedData", ()=>this.fetchKeysArray())
@@ -101,6 +103,12 @@ class Store {
this._accountData = data;
};
fetchNodeInfo() {
getNodeInfo()
.then((info)=>this.fetchNodeInfoSuccess(info))
.catch((err) => this.fetchNodeInfoFailed(err))
}
saveInfoTransactions(transaction) {
this._transactionsInfo = transaction.data
}