use mix_id for account to get correct pending cost event (#1869)

* use mix_id for account to get correct pending cost event
This commit is contained in:
Fouad
2022-12-08 15:42:26 +00:00
committed by GitHub
parent d48d094672
commit fea9ec0f9f
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -5497,7 +5497,7 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "vesting-contract"
version = "1.1.0"
version = "1.1.2"
dependencies = [
"contracts-common",
"cosmwasm-std",
@@ -88,7 +88,11 @@ export const ParametersSettings = ({ bondedNode }: { bondedNode: TBondedMixnode
const getPendingEvents = async () => {
const events = await getPendingIntervalEvents();
const latestEvent = events.reverse().find((evt) => 'ChangeMixCostParams' in evt.event) as unknown as
const latestEvent = events
.reverse()
.find(
(evt) => 'ChangeMixCostParams' in evt.event && evt.event.ChangeMixCostParams.mix_id === bondedNode.mixId,
) as unknown as
| {
id: number;
event: {