fix: fix bugs in executeContract of NodeContractInstances.js
This commit is contained in:
parent
0dfa8a555a
commit
965ee67409
@ -400,7 +400,7 @@ function executeContract() {
|
|||||||
console.log(request.arg);
|
console.log(request.arg);
|
||||||
const gasLimit = $('#gasLimit').val() / 1;
|
const gasLimit = $('#gasLimit').val() / 1;
|
||||||
var toSign = request.contractID + "|"
|
var toSign = request.contractID + "|"
|
||||||
+ request.operation + "|" + arg ;
|
+ request.operation + "|" + request.arg;
|
||||||
if (gasLimit > 0) {
|
if (gasLimit > 0) {
|
||||||
request.gasLimit = gasLimit;
|
request.gasLimit = gasLimit;
|
||||||
toSign += "|" + gasLimit;
|
toSign += "|" + gasLimit;
|
||||||
@ -474,6 +474,7 @@ function getMask() {
|
|||||||
localStorage.setItem("persisArg", JSON.stringify(request));
|
localStorage.setItem("persisArg", JSON.stringify(request));
|
||||||
global.wssocket.send(JSON.stringify(request));
|
global.wssocket.send(JSON.stringify(request));
|
||||||
}
|
}
|
||||||
|
|
||||||
function setMask() {
|
function setMask() {
|
||||||
const argDiv = $('#maskArg')[0];
|
const argDiv = $('#maskArg')[0];
|
||||||
const request = {};
|
const request = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user