Calling sendAsync will be deprecated; we should use request instead.
Here is where we are doing this in the core repo:
FakeProvider
NetworkController tests
Additionally, there are places where we expect the provider that NetworkController returns to have a sendAsync method, and similarly, we should change this to request and update the method signature appropriately:
SelectedNetworkController tests
createAutoManagedNetworkClient tests
Note that there are places in core where we are calling sendAsync on eth-query. We don't need to worry about those in this ticket; they are being addressed in a different ticket.
After
SafeEventEmitterProvider
is updated to support EIP-1193, we should adapt to the changes:sendAsync
will be deprecated; we should userequest
instead.core
repo:FakeProvider
NetworkController
testssendAsync
method, and similarly, we should change this torequest
and update the method signature appropriately:SelectedNetworkController
testscreateAutoManagedNetworkClient
testscore
where we are callingsendAsync
oneth-query
. We don't need to worry about those in this ticket; they are being addressed in a different ticket.