@@ -39,7 +39,7 @@ void main() {
39
39
final invalidMnemonic = 'invalid mnemonic phrase' ;
40
40
expect (
41
41
() async =>
42
- await signer.fromMnemonic (invalidMnemonic, KPType .sr25519 ),
42
+ await signer.fromMnemonic (invalidMnemonic, KPType .ed25519 ),
43
43
throwsException);
44
44
});
45
45
@@ -108,7 +108,7 @@ void main() {
108
108
148 ,
109
109
202 ,
110
110
]);
111
- expect (() async => await signer.fromSeed (invalidSeed, KPType .sr25519 ),
111
+ expect (() async => await signer.fromSeed (invalidSeed, KPType .ed25519 ),
112
112
throwsException);
113
113
});
114
114
@@ -124,7 +124,7 @@ void main() {
124
124
});
125
125
126
126
test ('Test sign with invalid hex seed' , () async {
127
- expect (() async => signer.fromHexSeed ('0x6c1' , KPType .sr25519 ),
127
+ expect (() async => signer.fromHexSeed ('0x6c1' , KPType .ed25519 ),
128
128
throwsException);
129
129
});
130
130
@@ -157,9 +157,9 @@ void main() {
157
157
final signer = Signer ();
158
158
final mnemonic =
159
159
'picnic flip cigar rival risk scatter slide aware trust garlic solution token' ;
160
- await signer.fromMnemonic (mnemonic, KPType .sr25519 );
160
+ await signer.fromMnemonic (mnemonic, KPType .ed25519 );
161
161
162
- final keypair = await KeyPair .sr25519 .fromMnemonic (mnemonic);
162
+ final keypair = await KeyPair .ed25519 .fromMnemonic (mnemonic);
163
163
final address = keypair.address;
164
164
165
165
final pair = await signer.keypairFromAddress (address);
0 commit comments