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
For example, if there is not enough balance for addr, an error will happen and developer needs to handle the error themselves.
However, this situation can be prevented if developr manually encode the transaction parameters and call the cfx_sendTransaction method rather than using the sdk provided method. In that case the browser wallet could handle the error and tell the user the problem is insufficient balance.
It is suggested to improve the implementation to reduce the work dapp developers need to do.
The text was updated successfully, but these errors were encountered:
The following code might fail from the sdk auto-estimation
For example, if there is not enough balance for
addr
, an error will happen and developer needs to handle the error themselves.However, this situation can be prevented if developr manually encode the transaction parameters and call the
cfx_sendTransaction
method rather than using the sdk provided method. In that case the browser wallet could handle the error and tell the user the problem is insufficient balance.It is suggested to improve the implementation to reduce the work dapp developers need to do.
The text was updated successfully, but these errors were encountered: