ontio / cyano-wallet

Cyano wallet - an Ontology wallet
Other
26 stars 36 forks source link

invoke smart contract bug #11

Open sulingxiao opened 5 years ago

sulingxiao commented 5 years ago

Hi backslash47

when I use www.ontdex.io to buy/sale some token, I mean invoke a sc,cyano return below image

I have enough ONG in my account image

and after get the error message,when I check the invoke result,I found this operation to be successful on the chain.

may some bug in error msg system? please help about this.

Best Regards LinK

backslash47 commented 5 years ago

Hi LinK,

thank you for submitting the info. So I understand you are making a SC call and receiving an error/timeout although the transaction went through. Is that right?

sulingxiao commented 5 years ago

Hi LinK,

thank you for submitting the info. So I understand you are making a SC call and receiving an error/timeout although the transaction went through. Is that right?

yes!

backslash47 commented 5 years ago

I tried the call and there was no Notify message received from the blockchain.

Only a Log message:

{"Action":"Log","Desc":"SUCCESS","Error":0,"Result":{"TxHash":"06c61200f97e8666d432be9f8cc7a1312e8517c20e061880d3be27125b0fc163","ContractAddress":"d3b733f12df9a6efb13ca547be5ee4e4dbe6d41e","Message":"100200000000"},"Version":"1.0.0"}

If the Notify message is not received then Cyano can not know if the transaction has succeeded.

sulingxiao commented 5 years ago

Thx, I will ask the developer to check their SC ! after the bug fixed, I will close this issue.

MickWang commented 5 years ago

I tried the call and there was no Notify message received from the blockchain.

Only a Log message:

{"Action":"Log","Desc":"SUCCESS","Error":0,"Result":{"TxHash":"06c61200f97e8666d432be9f8cc7a1312e8517c20e061880d3be27125b0fc163","ContractAddress":"d3b733f12df9a6efb13ca547be5ee4e4dbe6d41e","Message":"100200000000"},"Version":"1.0.0"}

If the Notify message is not received then Cyano can not know if the transaction has succeeded.

Hi, man. Is it possible to let Cyano support parse Log message?