Commit 9120061f authored by Mahdi Yari's avatar Mahdi Yari

fix updateOperations()

parent 6819a7bd
......@@ -11,11 +11,15 @@ var bigi = require('bigi'),
hash = require('./ecc/src/hash');
var Auth = {};
var transaction = operations.transaction;
var signed_transaction = operations.signed_transaction;
// this function can be removed after hf24
const updateOperations = () => {
delete require.cache[require.resolve('./serializer/src/operations')];
var operations = require('./serializer/src/operations');
var transaction = operations.transaction;
var signed_transaction = operations.signed_transaction;
operations = require('./serializer/src/operations');
transaction = operations.transaction;
signed_transaction = operations.signed_transaction;
}
updateOperations()
Auth.updateOperations = updateOperations
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment