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
Hi @gsong
It suggests that the function will soon require an object with a payload property instead of just the payload itself.
Current (soon-to-be-deprecated) usage:
awaitsignAndSubmitTransaction(payload);
Updated usage (as per the warning):
awaitsignAndSubmitTransaction({ payload });
However, since you mentioned that using the recommended function signature doesn't work:
Check for Typographical Errors:
Ensure that you are correctly passing the payload as an object property. It should be { payload } and not {payload} or any other variation.
Verify the Payload Structure:
Ensure that the payload you are passing is correctly structured and contains all necessary fields required by the function.
Check for Package Updates:
Sometimes, packages may release updates that fix issues or add clarity. Ensure that you have the latest version of @aptos-labs/wallet-adapter-react by running:
When using the latest
@aptos-labs/[email protected]
, this message appears in the console:However, using the recommended function signature doesn't work.
The text was updated successfully, but these errors were encountered: