Open abing258 opened 7 months ago
The error is because the output mismatches the method return value. You should check if the method abi matches with the contract code or maybe the call request has failed
该错误是因为输出与方法返回值不匹配。您应该检查方法abi是否与合约代码匹配或者调用请求失败
After checking, I found that this method added some garbled characters to the input parameters
length larger than int64
possible reasons:
get() returns string
and use get() returns int64
to Unpack
length larger than int64
可能的原因:
- 期望int64,但返回超出了int64的范围。也许你得到 uint64 作为返回,但使用 int64 来解压
- 由于合约逻辑,调用请求失败,您应该检查调用是否返回错误,如果是输出是“Error(string)”的编码字节,文档在这里
- 您用于 Unpack 的方法与调用请求不匹配,例如调用一个方法
get() returns string
并用于get() returns int64
Unpack
It doesn't sound very reasonable. Please provide the code, environment information, and reproduction method so that we can track it @abing258
I called the query method and obtained the following result.