Skip to content

Commit

Permalink
Fix legacy delegation entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Apr 22, 2024
1 parent fc7e980 commit 21b604b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions multiversx_sdk_cli/localnet/genesis_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ def _build_validator_entry(nickname: str, account: Account, value: int) -> Dict[
"address": account.address.to_bech32(),
"supply": str(value),
"balance": "0",
"stakingvalue": str(value)
"stakingvalue": str(value),
"delegation": {
"address": "",
"value": "0"
}
}


Expand All @@ -47,5 +51,9 @@ def _build_user_entry(nickname: str, account: Account, value: int) -> Dict[str,
"address": account.address.to_bech32(),
"supply": str(value),
"balance": str(value),
"stakingvalue": "0"
"stakingvalue": "0",
"delegation": {
"address": "",
"value": "0"
}
}

0 comments on commit 21b604b

Please sign in to comment.