From 136654f1bdb95c91ed24a8c6fbda508f9416bbf8 Mon Sep 17 00:00:00 2001 From: brewmaster012 <88689859+brewmaster012@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:31:26 -0800 Subject: [PATCH] add val address --- staking.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/staking.js b/staking.js index 45528a7..99ddff5 100644 --- a/staking.js +++ b/staking.js @@ -64,14 +64,15 @@ class StakingPage { "status": val.status, "tokens": parseFloat(val.tokens)/1e18, "delegator_share": parseFloat(val.delegator_shares)/parseFloat(val.tokens), - "update_time": val.commission.update_time + "update_time": val.commission.update_time, + "val_address": val.operator_address }; rows2.push( row); console.log("val", i, row); } rows2.sort((a,b)=>{return -a.tokens+b.tokens;}); console.log(rows2); - entry.appendChild(makeTableElement2(rows2, ["moniker", "address", "jailed", "status", "tokens", "delegator_share", "update_time"])); + entry.appendChild(makeTableElement2(rows2, ["moniker", "address", "jailed", "status", "tokens", "delegator_share", "update_time","val_address"])); } }