Skip to content

Commit

Permalink
feat(namada): decode Vote::is_validator
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Sep 10, 2024
1 parent 9e4e4a9 commit 018c6bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions packages/namada/pkg/fadroma_namada.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,9 +715,6 @@ function __wbg_get_imports() {
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1);
return addHeapObject(ret);
};
imports.wbg.__wbg_debug_5a33c41aeac15ee6 = function() { return logError(function (arg0) {
console.debug(getObject(arg0));
}, arguments) };
imports.wbg.__wbg_new_a220cf903aa02ca2 = function() { return logError(function () {
const ret = new Array();
return addHeapObject(ret);
Expand Down
7 changes: 4 additions & 3 deletions packages/namada/src/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,10 @@ impl Decode {
let result = Array::new();
for vote in votes.iter() {
result.push(&to_object! {
"validator" = vote.validator,
"delegator" = vote.delegator,
"data" = vote.data,
"isValidator" = vote.is_validator(),
"validator" = vote.validator,
"delegator" = vote.delegator,
"data" = vote.data,
}.into());
}
Ok(result)
Expand Down

0 comments on commit 018c6bc

Please sign in to comment.