We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4eb198 commit 9072a4fCopy full SHA for 9072a4f
examples/CreateAndSignTx.js
@@ -2,7 +2,7 @@
2
3
4
var run = function() {
5
- var bitcore = require('../bitcore');
+ bitcore = bitcore || require('../bitcore');
6
7
var priv = 'cTgGUrcro89yUtKeG6gHBAS14r3qp25KwTTxG9d4kEzcFxecuZDm';
8
var amt = '0.005';
examples/example.html
@@ -90,7 +90,12 @@
90
print("Private: " + o.priv);
91
print("Public: " + o.pub);
92
print("Addr: " + o.addr);
93
+
94
+ var module = { exports: {} };
95
+ </script>
96
+ <script src="./CreateAndSignTx.js"></script>
97
+ <script>
98
+ run();
99
</script>
- <script src="./createTx.js"></script>
100
</body>
101
</html>
0 commit comments