mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 21:07:17 +00:00
fixed natspec_contract.html example
This commit is contained in:
parent
83505e61f3
commit
5c79ee4446
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<script type="text/javascript" src="js/es6-promise/promise.min.js"></script>
|
<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" src="../dist/ethereum.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
@ -44,7 +45,7 @@
|
|||||||
|
|
||||||
// create contract
|
// create contract
|
||||||
web3.eth.transact({code: web3.eth.solidity(source)}).then(function (address) {
|
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';
|
document.getElementById('call').style.visibility = 'visible';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user