mirror of
https://github.com/FlipsideCrypto/near-bos-vm.git
synced 2026-02-06 11:18:24 +00:00
Revert change for Ethers.send
This commit is contained in:
parent
609937473b
commit
dfa8bd74e8
@ -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
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user