You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the param type of function call(self, from_addr: str, to_addr: str, value: int, nonce: int, gasprice: int, gaslimit: int, contract=None) in class Api is incorrect.
the value must be string
the gasprice、geslimit must be string
otherwise, i will get error:
{"error":"json: cannot unmarshal number into Go value of type string"}
and the example is right in ApiExample.py
re = neb.api.call("n1JmhE82GNjdZPNZr6dgUuSfzy2WRwmD9zy",
"n1zRenwNRXVwY6akcF4rUNoKhmNWP9bhSq8",
"100000",
int(re['result']['nonce']) + 1,
"200000",
"200000", {'function': 'getOrderCount', 'args': ''}).text
The text was updated successfully, but these errors were encountered:
the param type of function call(self, from_addr: str, to_addr: str, value: int, nonce: int, gasprice: int, gaslimit: int, contract=None) in class Api is incorrect.
the value must be string
the gasprice、geslimit must be string
otherwise, i will get error:
{"error":"json: cannot unmarshal number into Go value of type string"}
and the example is right in ApiExample.py
re = neb.api.call("n1JmhE82GNjdZPNZr6dgUuSfzy2WRwmD9zy",
"n1zRenwNRXVwY6akcF4rUNoKhmNWP9bhSq8",
"100000",
int(re['result']['nonce']) + 1,
"200000",
"200000", {'function': 'getOrderCount', 'args': ''}).text
The text was updated successfully, but these errors were encountered: