调用合同方法的不同方法
问题描述:
我有一个合同,其方法名称为getValues().我从Dapp调用合同方法为'contractCAt.getValues.call(function(error,result){...})',这样可以正常工作,并使用' contractCAt.getValues(function(error,result){...})'这种语法也可以正常工作.我在调用合同方法的两种方法之间没有任何区别.
I have one contract with method name as getValues().From Dapp I am invoking contract method as 'contractCAt.getValues.call(function(error,result){...})' this works fine and by using 'contractCAt.getValues(function(error,result){...})' this syntax also works fine.I didn't get any difference between those two ways to invoke contract method.So could anyone help me to give idea about those syntax.