You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return` 0x${(start+i).toString(16).padStart(6,'0')} (${(start+i).toString().padStart(4,' ')}) ${datawideBytes.map(b=>b=="00" ? b : c.bold(c.bgYellowBright(b))).join(" ")}${strline}`;
302
+
}).join('\n');
303
+
304
+
console.log(head+lines);
305
+
});
306
+
307
+
break;
308
+
case'bytecode':
309
+
deployed&&cb(c.yellow(deployed.bytecode));
310
+
break;
311
+
case'deployed':
312
+
cb(deployed);
313
+
break;
314
+
case'storageLayout':
315
+
deployed&&cb(deployed.storageLayout);
316
+
break;
317
+
case'opcodes':
318
+
deployed&&cb(deployed.opcodes);
319
+
break;
320
+
}
321
+
break;
242
322
case'.fetch':
243
323
if(commandParts.length<4){
244
324
cb("Invalid params: .fetch interface <address> <name> [chain=mainnet] ... fetch and load an interface declaration from an ABI spec on etherscan.io")
@@ -310,7 +390,7 @@ vorpal
310
390
.mode('repl','Enters Solidity Shell Mode')
311
391
.delimiter(c.bold('» '))
312
392
.init(function(args,cb){
313
-
this.log(`🚀 Entering interactive Solidity ${c.bold(shell.settings.installedSolidityVersion)} shell (🧁:${c.bold(shell.blockchain.name)}). '${c.bold('.help')}' and '${c.bold('.exit')}' are your friends.`);
393
+
this.log(`🚀 Entering interactive Solidity ${c.bold(shell.settings.installedSolidityVersion)} shell (🧁:${c.bold(shell.blockchain.name)}${shell.settings.ganacheOptions&&shell.settings.ganacheOptions.fork ? c.bold(', ⇉ fork-mode'):''}). '${c.bold('.help')}' and '${c.bold('.exit')}' are your friends.`);
0 commit comments