File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ export const WalletProvider: React.FC<{ children: ReactNode }> = ({
215215 const addAccount = async ( name : string | null ) : Promise < void > => {
216216 try {
217217 const index = walletList . length ;
218- const address = HDWallet . fromMnemonic ( seedPhrase || "" )
218+ const address = HDWallet . fromMnemonic ( seedPhrase ! )
219219 . deriveAccountAtIndex ( index )
220220 . getAddress ( ) ;
221221
@@ -280,7 +280,7 @@ export const WalletProvider: React.FC<{ children: ReactNode }> = ({
280280 } ;
281281
282282 const getAccountFromIndex = ( index : number ) : Account => {
283- return HDWallet . fromMnemonic ( seedPhrase || "" ) . deriveAccountAtIndex ( index ) ;
283+ return HDWallet . fromMnemonic ( seedPhrase ! ) . deriveAccountAtIndex ( index ) ;
284284 } ;
285285
286286 const setSeedPhrase = ( seedPhrase : string ) : void => {
You can’t perform that action at this time.
0 commit comments