@@ -18,9 +18,9 @@ import (
18
18
19
19
func TestEthProvider_Generate (t * testing.T ) {
20
20
const (
21
- mockAddress = "0xa192Ed2D2d961f0AB1B670a1E8Dab18827153148 "
22
- mockPubKey = "0x04e4f8056521e0da9cfbb85bf7023d45089588c143e7cf4f784ff319cdc9c423850a7970a19455c8c5a0c6fe4d4cce464bac9a6dfc3e3611fc650e93079eaaf83f "
23
- mockPrivateKey = "0x0101010101010101024798bbd525dd3cfffad755af8ea0fffbbb8dec79497fc2 "
21
+ mockAddress = "0x1a642f0E3c3aF545E7AcBD38b07251B3990914F1 "
22
+ mockPubKey = "0x041b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f70beaf8f588b541507fed6a642c5ab42dfdf8120a7f639de5122d47a69a8e8d1 "
23
+ mockPrivateKey = "0x0101010101010101010101010101010101010101010101010101010101010101 "
24
24
)
25
25
26
26
p := & wallet.EthProvider {
@@ -31,9 +31,9 @@ func TestEthProvider_Generate(t *testing.T) {
31
31
t .Run ("Mock_GenerationSuccessful" , func (t * testing.T ) {
32
32
w := p .Generate ()
33
33
34
- assert .Equal (t , w .Address , mockAddress )
35
- assert .Equal (t , w .PublicKey , mockPubKey )
36
- assert .Equal (t , w .PrivateKey , mockPrivateKey )
34
+ assert .Equal (t , mockAddress , w .Address )
35
+ assert .Equal (t , mockPubKey , w .PublicKey )
36
+ assert .Equal (t , mockPrivateKey , w .PrivateKey )
37
37
})
38
38
39
39
t .Run ("Mock_PrivateKeyAsStringToPublicKey" , func (t * testing.T ) {
@@ -70,8 +70,8 @@ func TestEthProvider_Generate(t *testing.T) {
70
70
publicKey := hexutil .Encode (crypto .FromECDSAPub (& key .PublicKey ))
71
71
address := crypto .PubkeyToAddress (key .PublicKey ).Hex ()
72
72
73
- assert .Equal (t , publicKey , w .PublicKey )
74
- assert .Equal (t , address , w .Address )
73
+ assert .Equal (t , w .PublicKey , publicKey )
74
+ assert .Equal (t , w .Address , address )
75
75
})
76
76
}
77
77
0 commit comments