File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,41 @@ def test_transfer(self):
6666 self .assertEqual (binascii .hexlify (response .public_key ), b"029729a52e4e3c2b4a4e52aa74033eedaf8ba1df5ab6d1f518fd69e67bbd309b0e" )
6767 self .assertEqual (binascii .hexlify (response .signature ), b"faf5b908d6c4ec0c7e2e7d8f7e1b9ca56ac8b1a22b01655813c62ce89bf84a4c7b14f58ce51e85d64c13f47e67d6a9187b8f79f09e0a9b82019f47ae190a4db3" )
6868
69+ def test_transfer_bep2 (self ):
70+ self .requires_firmware ("6.6.0" )
71+ self .setup_binance ()
72+
73+ message = {
74+ "account_number" : "34" ,
75+ "chain_id" : "Binance-Chain-Nile" ,
76+ "data" : "null" ,
77+ "memo" : "test" ,
78+ "msgs" : [
79+ {
80+ "inputs" : [
81+ {
82+ "address" : "tbnb1hgm0p7khfk85zpz5v0j8wnej3a90w709zzlffd" ,
83+ "coins" : [{"amount" : 1000000000 , "denom" : "RUNE-B1A" }],
84+ }
85+ ],
86+ "outputs" : [
87+ {
88+ "address" : "tbnb1ss57e8sa7xnwq030k2ctr775uac9gjzglqhvpy" ,
89+ "coins" : [{"amount" : 1000000000 , "denom" : "RUNE-B1A" }],
90+ }
91+ ],
92+ }
93+ ],
94+ "sequence" : "31" ,
95+ "source" : "1" ,
96+ }
97+
98+ response = binance .sign_tx (self .client , parse_path ("m/44'/714'/0'/0/0" ), message )
99+
100+ self .assertEqual (binascii .hexlify (response .public_key ), b"029729a52e4e3c2b4a4e52aa74033eedaf8ba1df5ab6d1f518fd69e67bbd309b0e" )
101+ self .assertEqual (binascii .hexlify (response .signature ), b"dd79d81887a7e66b90016e92855dd717136ec84da10dba46bf6ef831f11593dc3d07909e74a9f1517f1c710a036f2a72ca2cb152ad9f679f39e390297055cce3" )
102+
103+
69104
70105if __name__ == '__main__' :
71106 unittest .main ()
You can’t perform that action at this time.
0 commit comments