mirror of
https://github.com/fluencelabs/wasm-utils
synced 2025-05-07 04:32:17 +00:00
layout for managed call
This commit is contained in:
parent
9533a8c998
commit
0d085412cb
@ -95,7 +95,6 @@
|
||||
|
||||
loadWebAssembly('out/contract.wasm')
|
||||
.then(instance => {
|
||||
debugger;
|
||||
var exports = instance.exports;
|
||||
var call = exports._call;
|
||||
var malloc = exports._malloc;
|
||||
@ -121,6 +120,23 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<input type="button" id="do-call" value="(waiting for WebAssembly)"/>
|
||||
<div>
|
||||
<label for="context" style="display: block">Context</label>
|
||||
<textarea style="width: 480px; height: 96px; margin-bottom: 24px; resize: none" id="context">[]</textarea>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="storage" style="display: block">Storage</label>
|
||||
<textarea style="width: 480px; height: 120px; margin-bottom: 24px; resize: none" id="storage">[]</textarea>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="result" style="display: block">Result</label>
|
||||
<textarea style="width: 480px; height: 96px; margin-bottom: 24px; resize: none" id="result">[]</textarea>
|
||||
</div>
|
||||
|
||||
<div style="height: 5px; border-top: 1px solid black"></div>
|
||||
|
||||
<input type="button" id="do-call" value="(waiting for WebAssembly)"></input>
|
||||
</body>
|
||||
</html>
|
@ -95,7 +95,6 @@ impl CallArgs {
|
||||
// managed in calling code
|
||||
std::mem::forget(result);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
Loading…
x
Reference in New Issue
Block a user