ERROR MESSAGES
ERROR MESSAGES -
Some common errors you might encounter during integration of dapps, listed below
ADD DAPP FUNCTION -
ADMIN CAN'T BE 0 ADDRESS- the admin address passed as an argument for the parameter_appAdmincan’t be zero address, it has to be a valid addressSURPASSED IMAGE LIMIT- the parameter_appScreenshotsin add dapp function takes in an array of urls of images of the app, but currently this array can’t have more than 5 image urls. so make sure to pass less than 5 urls in_appScreenshotsargument.SURPASSED CATEGORY LIMIT- the parameter_appCategoryin add dapp function takes in an array of categories but currently this array can’t have more than 7 categories. so make sure to pass less than 8 categories in_appCategoryargument.SURPASSED TAG LIMIT- the parameter_appTagsin add dapp function takes in an array of tags but currently this array can’t have more than 7 tags. so make sure to pass less than 8 tags in_appTagsargument.
SUBSCRIBE/UNSUBSCRIBE FUNCTION - (subscribeToDapp)
INVALID DAPP ID- the argument entered in the parameterbytes appIDshould be a valid dapp Id, should start with 0x.UNCHANGED- the argument entered in the parameterbool subscriptionStatusshould be opposite of what is the current subscription status in the smart contract. to check for current subscription status , useisSubscribedread function.
SEND_APP_NOTIFICATION FUNCTION - (sendAppNotification)
INVALID DAPP ID- the argument entered in the parameterbytes appIDshould be a valid dapp Id, should start with 0x.NOT_ENOUGH_CREDIT- this error is displayed when the user who is doing the txn has no credits left for doing gasless txn.NOT_SUBSCRIBED- this error is displayed when the user wallet to which you are trying to send notification has not subscribed to the app id that is passed in the argument
Last updated