1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-26 07:11:25 +00:00

Field "sender" is renamed to "from" in eosio ABI for un/delegatebw

This commit is contained in:
EDmitry 2019-11-08 18:17:16 -08:00 committed by matejcik
parent 597277725e
commit e286bd46f9

View File

@ -144,7 +144,7 @@ def parse_sell_ram(data):
def parse_delegate(data):
return messages.EosActionDelegate(
sender=name_to_number(data["sender"]),
sender=name_to_number(data["from"]),
receiver=name_to_number(data["receiver"]),
net_quantity=parse_asset(data["stake_net_quantity"]),
cpu_quantity=parse_asset(data["stake_cpu_quantity"]),
@ -154,7 +154,7 @@ def parse_delegate(data):
def parse_undelegate(data):
return messages.EosActionUndelegate(
sender=name_to_number(data["sender"]),
sender=name_to_number(data["from"]),
receiver=name_to_number(data["receiver"]),
net_quantity=parse_asset(data["unstake_net_quantity"]),
cpu_quantity=parse_asset(data["unstake_cpu_quantity"]),