File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,7 +172,8 @@ export async function createAccount(options: AccountCreateOptions): Promise<void
172172 addKeyToWallet ( newPrivateKey , accountName )
173173 console . log ( `\n🔐 Key stored in wallet as: ${ accountName } ` )
174174 console . log (
175- 'You can now deploy contracts with: wharfkit contract deploy --account ' + accountName
175+ 'You can now deploy contracts with: wharfkit contract deploy --account ' +
176+ accountName
176177 )
177178 } catch ( error ) {
178179 console . log (
Original file line number Diff line number Diff line change @@ -103,11 +103,14 @@ export async function validateDeploy(
103103 // But "safety check" implies we stop.
104104 // However, if account doesn't exist, get_abi throws.
105105 // We should catch that.
106- if ( error . message . includes ( 'Account not found' ) || error . message . includes ( 'does not exist' ) ) {
107- // New account, safe.
108- return
106+ if (
107+ error . message . includes ( 'Account not found' ) ||
108+ error . message . includes ( 'does not exist' )
109+ ) {
110+ // New account, safe.
111+ return
109112 }
110-
113+
111114 // If it's a validation run, rethrow.
112115 // If it's a deploy run, maybe warn?
113116 // But we want strict safety.
@@ -163,11 +166,9 @@ export async function deployContract(
163166
164167 // Determine the blockchain URL
165168 let url = options . url || 'http://127.0.0.1:8888'
166-
169+
167170 // Check if URL is a known chain name
168- const knownChainKey = Object . keys ( Chains ) . find (
169- ( key ) => key . toLowerCase ( ) === url . toLowerCase ( )
170- )
171+ const knownChainKey = Object . keys ( Chains ) . find ( ( key ) => key . toLowerCase ( ) === url . toLowerCase ( ) )
171172 if ( knownChainKey ) {
172173 url = ( Chains as any ) [ knownChainKey ] . url
173174 }
You can’t perform that action at this time.
0 commit comments