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
In @didtools/pkh-ethereum, there is a safeSend function defined in the utils file which handles performing a call to an RPC endpoint for the Ethereum blockchain. This method uses a callback to retrieve the value from the send function, which doesn't take a callback, but instead returns a promise.
As expected ethers v6 send follows this format and a call to getAccountId or (more importantly)EthereumWebAuth.getAuthMethod will fail silently when the call is performed and the result is returned as a promise rather than in a callback.
Additionally
The part of safeSend that uses the request method looks like:
Description
In
@didtools/pkh-ethereum
, there is asafeSend
function defined in theutils
file which handles performing a call to an RPC endpoint for the Ethereum blockchain. This method uses a callback to retrieve the value from thesend
function, which doesn't take a callback, but instead returns a promise.Technical Information
Part of the definition of
safeSend
is as follows:The problem is that the Legacy Provider API only defines a callback for
sendAsync
. Regularsend
returns a promise.As expected
ethers
v6send
follows this format and a call togetAccountId
or (more importantly)EthereumWebAuth.getAuthMethod
will fail silently when the call is performed and the result is returned as a promise rather than in a callback.Additionally
The part of
safeSend
that uses therequest
method looks like:According to the documentation, I'm pretty sure that should be:
The text was updated successfully, but these errors were encountered: