mirror of https://github.com/status-im/op-geth.git
fixed contract example
This commit is contained in:
parent
649b9cc195
commit
f02368141f
|
@ -52,8 +52,8 @@
|
||||||
var param = parseInt(document.getElementById('value').value);
|
var param = parseInt(document.getElementById('value').value);
|
||||||
|
|
||||||
// call the contract
|
// call the contract
|
||||||
var res = contract.multiply(param);
|
var res = contract.call().multiply(param);
|
||||||
document.getElementById('result').innerText = res[0];
|
document.getElementById('result').innerText = res.toString(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue