updated outdated js dryrunDebugging code
@@ -7,12 +7,14 @@ const algosdk = require('algosdk');
const token = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
const server = "http://localhost";
const port = 4001;
-
+// const token = "6b3a2ae3896f23be0a1f0cdd083b6d6d046fbeb594a3ce31f2963b717f74ad43"
+// const server = "http://127.0.0.1"
+// const port = 54746;
// Import the filesystem module
const fs = require('fs');
// import your private key mnemonic
-// mnemonics should not be used in prodcution code, for demo purposes only
-let PASSPHRASE = "<25-word-mnemonic>";
+// let PASSPHRASE = "<25-word-mnemonic>";
+let PASSPHRASE = "awake used crawl list cruel harvest useful flag essay speed glad salmon camp sudden ride symptom test kind version together project inquiry diet abandon budget";
let myAccount = algosdk.mnemonicToSecretKey(PASSPHRASE);
console.log("My Address: " + myAccount.addr);
@@ -109,16 +111,14 @@ let algodclient = new algosdk.Algodv2(token, server, port);
console.log(e);
});
async function dryrunDebugging(lsig, txn, data) {
- if (data == null)
- {
+ if (data == null) {
//compile
txns = [{
lsig: lsig,
txn: txn,
}];
}
- else
- {
+ else {
// source
txns = [{
txn: txn,
