Is there a way to get the config settings readable inside a custom transaction and if so how?
In that case I would recommend a transaction builder :
function configureCustomTransaction(someIntegerParam) {
return class MyCustomTransaction {
foo() {
return someIntegerParam * 2;
}
}
}
const ConfiguredCustomTransaction = configureCustomTransaction(2);
const tx = new ConfiguredCustomTransaction();
console.log(tx.foo());
2 Likes