Skip to content
Snippets Groups Projects
Commit 9120061f authored by Mahdi Yari's avatar Mahdi Yari
Browse files

fix updateOperations()

parent 6819a7bd
No related branches found
No related tags found
1 merge request!7Rebrand hf24
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment