Closed
Description
Bug brief
When calling "spotDeploy" api, if the address list in "userAndWei" involves uppercase, it leads to signature error: L1 error: User or API Wallet 0xe62b09a760b8bd649cc678767fbb74c868b05111 does not exist.
, which is quite misleading.
How to reproduce
use the following to send api
action = {
"type": "spotDeploy",
"userGenesis":{
"token": TOKEN_ID,
# note: address should use lowercase, uppercase would cause signature error.
"userAndWei": [["0xABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDE","0"]],
"existingTokenAndWei": []
}
}
Suggestions
- In the chain node side, use the original message to recover signer address from signature rather the lowercase ones
- or, on the sdk side, either support auto toLowercase or throw error when it has uppercase.
Metadata
Metadata
Assignees
Labels
No labels