@farcaster/frame-sdk 0.0.0-canary-20250515203543 → 0.0.0-canary-20250516033422

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farcaster/frame-sdk",
3
- "version": "0.0.0-canary-20250515203543",
3
+ "version": "0.0.0-canary-20250516033422",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  "comlink": "^4.4.2",
23
23
  "eventemitter3": "^5.0.1",
24
24
  "ox": "^0.4.4",
25
- "@farcaster/frame-core": "0.0.0-canary-20250515203543"
25
+ "@farcaster/frame-core": "0.0.0-canary-20250516033422"
26
26
  },
27
27
  "scripts": {
28
28
  "clean": "rm -rf dist",
@@ -89,7 +89,12 @@ export async function getEthereumProvider(): Promise<
89
89
  > {
90
90
  try {
91
91
  const capabilities = await frameHost.getCapabilities()
92
- if (!capabilities.includes('wallet.getEthereumProvider')) {
92
+ if (
93
+ !capabilities.includes('wallet.getEthereumProvider') &&
94
+ !capabilities.includes('wallet.getEvmProvider' as MiniAppHostCapability)
95
+ ) {
96
+ // We used getEvmProvider for a short period before getEthereumProvider.
97
+ // In case we're talking to an old host, we check the old key.
93
98
  return undefined
94
99
  }
95
100
  return ethereumProvider