7
7
Sr25519Signature ,
8
8
generateAddKeyPayload ,
9
9
createProviderKeysAndId ,
10
- CENTS , getBlockNumber , assertExtrinsicSucceededAndFeesPaid ,
10
+ CENTS ,
11
+ getBlockNumber ,
12
+ assertExtrinsicSucceededAndFeesPaid ,
11
13
} from '../scaffolding/helpers' ;
12
14
import { KeyringPair } from '@polkadot/keyring/types' ;
13
15
import { AddKeyData , ExtrinsicHelper } from '../scaffolding/extrinsicHelpers' ;
@@ -173,7 +175,7 @@ describe('MSA Key management', function () {
173
175
await assert . doesNotReject ( ExtrinsicHelper . deletePublicKey ( keys , getUnifiedPublicKey ( thirdKey ) ) . signAndSend ( ) ) ;
174
176
} ) ;
175
177
176
- it ( 'adds a new public key for free if there is just one and its before the expiration block' , async function ( ) {
178
+ it ( 'adds a new public key for free if there is just one and its before the expiration block' , async function ( ) {
177
179
// Set up
178
180
const currentBlock = await getBlockNumber ( ) ;
179
181
setFreeKeyAddExpirationBLock ( getSudo ( ) . keys , currentBlock + 30 ) ;
@@ -198,11 +200,14 @@ describe('MSA Key management', function () {
198
200
199
201
// assert
200
202
assert . notEqual ( event , undefined , 'should have added public key' ) ;
201
- assert . notEqual ( chainEvents [ 'system.ExtrinsicSuccess' ] , undefined , 'should have returned an ExtrinsicSuccess event' ) ;
203
+ assert . notEqual (
204
+ chainEvents [ 'system.ExtrinsicSuccess' ] ,
205
+ undefined ,
206
+ 'should have returned an ExtrinsicSuccess event'
207
+ ) ;
202
208
assert . equal ( chainEvents [ 'balances.Withdraw' ] , undefined , 'should not have withdrawn a balance' ) ;
203
209
204
- await setFreeKeyAddExpirationBLock ( getSudo ( ) . keys , 0 ) ;
205
-
210
+ await setFreeKeyAddExpirationBLock ( getSudo ( ) . keys , 0 ) ;
206
211
} ) ;
207
212
} ) ;
208
213
0 commit comments