diff --git a/python/trezorlib/eos.py b/python/trezorlib/eos.py index 985aa4924..5227db34e 100644 --- a/python/trezorlib/eos.py +++ b/python/trezorlib/eos.py @@ -284,7 +284,7 @@ def parse_transaction_json(transaction): ) header.ref_block_num = int(transaction["ref_block_num"]) header.ref_block_prefix = int(transaction["ref_block_prefix"]) - header.max_net_usage_words = int(transaction["net_usage_words"]) + header.max_net_usage_words = int(transaction["max_net_usage_words"]) header.max_cpu_usage_ms = int(transaction["max_cpu_usage_ms"]) header.delay_sec = int(transaction["delay_sec"]) diff --git a/python/trezorlib/tests/device_tests/test_msg_eos_signtx.py b/python/trezorlib/tests/device_tests/test_msg_eos_signtx.py index f913569a4..41892d1e7 100644 --- a/python/trezorlib/tests/device_tests/test_msg_eos_signtx.py +++ b/python/trezorlib/tests/device_tests/test_msg_eos_signtx.py @@ -51,7 +51,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -94,7 +94,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -136,7 +136,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -178,7 +178,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -216,7 +216,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -260,7 +260,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -303,7 +303,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -341,7 +341,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -384,7 +384,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -426,7 +426,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -491,7 +491,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -529,7 +529,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -601,7 +601,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -639,7 +639,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -677,7 +677,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-07-14T10:43:28", "ref_block_num": 6439, "ref_block_prefix": 2995713264, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [], @@ -797,7 +797,7 @@ class TestMsgEosSignTx(TrezorTest): "expiration": "2018-06-19T13:29:53", "ref_block_num": 30587, "ref_block_prefix": 338239089, - "net_usage_words": 0, + "max_net_usage_words": 0, "max_cpu_usage_ms": 0, "delay_sec": 0, "context_free_actions": [],