mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 23:40:58 +00:00
tests/eth: all all all seed
This commit is contained in:
parent
f5af12c043
commit
29d3a21d84
@ -307,7 +307,7 @@ class TestMsgEthereumSigntx(TrezorTest):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_ethereum_signtx_newcontract(self):
|
def test_ethereum_signtx_newcontract(self):
|
||||||
self.setup_mnemonic_nopin_nopassphrase()
|
self.setup_mnemonic_allallall()
|
||||||
|
|
||||||
# contract creation without data should fail.
|
# contract creation without data should fail.
|
||||||
with pytest.raises(Exception):
|
with pytest.raises(Exception):
|
||||||
@ -350,14 +350,14 @@ class TestMsgEthereumSigntx(TrezorTest):
|
|||||||
value=12345678901234567890,
|
value=12345678901234567890,
|
||||||
data=b"ABCDEFGHIJKLMNOP" * 256 + b"!!!",
|
data=b"ABCDEFGHIJKLMNOP" * 256 + b"!!!",
|
||||||
)
|
)
|
||||||
assert sig_v == 27
|
assert sig_v == 28
|
||||||
assert (
|
assert (
|
||||||
sig_r.hex()
|
sig_r.hex()
|
||||||
== "d043caa5f35e7676e0a9f9f0cd72a4055ae715309e8db8b3b6f1db928d276222"
|
== "c86bda9de238b1c602648996561e7270a3be208da96bbf23474cb8e4014b9f93"
|
||||||
)
|
)
|
||||||
assert (
|
assert (
|
||||||
sig_s.hex()
|
sig_s.hex()
|
||||||
== "08b91becc7c4ffbea18fe499fb3289bc7384880c2f7d86f4e831191a286553f6"
|
== "18742403f75a05e7fa9868c30b36f1e55628de02d01c03084c1ff6775a13137c"
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_ethereum_sanity_checks(self):
|
def test_ethereum_sanity_checks(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user