Revert change for Ethers.send

This commit is contained in:
Evgeny Kuzyakov 2023-08-21 20:48:53 -07:00
parent 609937473b
commit dfa8bd74e8
3 changed files with 2 additions and 6 deletions

View File

@ -2,7 +2,7 @@
## 2.3.1
- `Ethers.send` will return a resolved Promise to `undefined` object if the provider is not available. Previously, it would throw an error.
- Rollback the following change: "`Ethers.send` to ignore cache and return a promise instead of the cached value". REASON: Too many widgets forked the logic to retrieve accounts using `Ethers.send`. We'll address it later with cache invalidation strategy.
## 2.3.0

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -963,10 +963,6 @@ class VmStack {
} else if (keyword === "Ethers") {
if (callee === "provider") {
return this.vm.ethersProvider;
} else if (callee === "send") {
return this.vm.ethersProvider
? this.vm.ethersProvider.send(...args)
: Promise.resolve(undefined);
} else if (callee === "setChain") {
const f = this.vm.ethersProviderContext?.setChain;
if (!f) {