aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-20 16:22:32 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-20 16:22:32 +0800
commit5c79ee4446640301f2688f886a1612865571ee01 (patch)
treeb345b47ff559a6cc868824395b0495f890a28bc3
parent83505e61f35eae3b491d8223444459b2faec41f0 (diff)
downloaddexon-5c79ee4446640301f2688f886a1612865571ee01.tar.gz
dexon-5c79ee4446640301f2688f886a1612865571ee01.tar.zst
dexon-5c79ee4446640301f2688f886a1612865571ee01.zip
fixed natspec_contract.html example
-rw-r--r--example/natspec_contract.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/natspec_contract.html b/example/natspec_contract.html
index 8d12b4a81..2548495b7 100644
--- a/example/natspec_contract.html
+++ b/example/natspec_contract.html
@@ -3,6 +3,7 @@
<head>
<script type="text/javascript" src="js/es6-promise/promise.min.js"></script>
+<script type="text/javascript" src="js/bignumber.js/bignumber.min.js"></script>
<script type="text/javascript" src="../dist/ethereum.js"></script>
<script type="text/javascript">
@@ -44,7 +45,7 @@
// create contract
web3.eth.transact({code: web3.eth.solidity(source)}).then(function (address) {
- contract = web3.contract(address, desc);
+ contract = web3.eth.contract(address, desc);
document.getElementById('call').style.visibility = 'visible';
});
}