aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-27 18:53:34 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-27 18:53:34 +0800
commitf02368141f11511c06306184df0eda372382c2bf (patch)
treeabbef517226698a1cd94ed9b45c4ff5491726421
parent649b9cc195ac5b700c312b664a99217a4d530b03 (diff)
downloadgo-tangerine-f02368141f11511c06306184df0eda372382c2bf.tar.gz
go-tangerine-f02368141f11511c06306184df0eda372382c2bf.tar.zst
go-tangerine-f02368141f11511c06306184df0eda372382c2bf.zip
fixed contract example
-rw-r--r--example/contract.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/contract.html b/example/contract.html
index da2282c86..dccd1a64f 100644
--- a/example/contract.html
+++ b/example/contract.html
@@ -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>