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
thrownewMUDError(`No \`--fromIndexer\` provided or indexer URL configured for chain ${fromChainId}.`);
67
+
}
68
+
69
+
constaccount=await(async()=>{
70
+
if(opts.kms){
71
+
constkeyId=process.env.AWS_KMS_KEY_ID;
72
+
if(!keyId){
73
+
thrownewMUDError(
74
+
"Missing `AWS_KMS_KEY_ID` environment variable. This is required when using with `--kms` option.",
75
+
);
76
+
}
77
+
78
+
returnawaitkmsKeyToAccount({ keyId });
79
+
}else{
80
+
constprivateKey=process.env.PRIVATE_KEY;
81
+
if(!isHex(privateKey)){
82
+
thrownewMUDError(
83
+
`Missing or invalid \`PRIVATE_KEY\` environment variable. To use the default Anvil private key, run\n\n echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" > .env\n`,
0 commit comments