mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-10 05:09:03 +00:00
fixed contract example
This commit is contained in:
parent
649b9cc195
commit
f02368141f
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@
|
|||
var param = parseInt(document.getElementById('value').value);
|
||||
|
||||
// call the contract
|
||||
var res = contract.multiply(param);
|
||||
document.getElementById('result').innerText = res[0];
|
||||
var res = contract.call().multiply(param);
|
||||
document.getElementById('result').innerText = res.toString(10);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue