From 21b604b1d5a2cfd7801b5da5070c09a5032fddb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Mon, 22 Apr 2024 11:34:17 +0300 Subject: [PATCH] Fix legacy delegation entries. --- multiversx_sdk_cli/localnet/genesis_json.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/multiversx_sdk_cli/localnet/genesis_json.py b/multiversx_sdk_cli/localnet/genesis_json.py index b4328a78..bfd61d63 100644 --- a/multiversx_sdk_cli/localnet/genesis_json.py +++ b/multiversx_sdk_cli/localnet/genesis_json.py @@ -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" + } } @@ -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" + } }