From 3ac6cac98ee412ec5fb31ebce979a72a525d0609 Mon Sep 17 00:00:00 2001 From: Jay Hwang Date: Fri, 15 Sep 2023 06:20:53 +0900 Subject: [PATCH 1/3] Fix parameters --- packages/@magic-sdk/provider/src/modules/wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@magic-sdk/provider/src/modules/wallet.ts b/packages/@magic-sdk/provider/src/modules/wallet.ts index ebb402480..a09fe79f0 100644 --- a/packages/@magic-sdk/provider/src/modules/wallet.ts +++ b/packages/@magic-sdk/provider/src/modules/wallet.ts @@ -83,7 +83,7 @@ export class WalletModule extends BaseModule { public sendGaslessTransaction(address: string, serializedTransaction: string) { return this.request( - createJsonRpcRequestPayload(MagicPayloadMethod.SendGaslessTransaction, [[address, serializedTransaction]]), + createJsonRpcRequestPayload(MagicPayloadMethod.SendGaslessTransaction, [address, serializedTransaction]), ); } From f5fbb00e158a41e362eddf79237cfb57644af9a2 Mon Sep 17 00:00:00 2001 From: Jay Hwang Date: Fri, 15 Sep 2023 06:21:27 +0900 Subject: [PATCH 2/3] Fix tc --- .../test/spec/modules/wallet/sendGaslessTransaction.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@magic-sdk/provider/test/spec/modules/wallet/sendGaslessTransaction.spec.ts b/packages/@magic-sdk/provider/test/spec/modules/wallet/sendGaslessTransaction.spec.ts index 274f2678c..bbbb5636c 100644 --- a/packages/@magic-sdk/provider/test/spec/modules/wallet/sendGaslessTransaction.spec.ts +++ b/packages/@magic-sdk/provider/test/spec/modules/wallet/sendGaslessTransaction.spec.ts @@ -17,7 +17,7 @@ test('Generate JSON RPC request payload with method `eth_sendGaslessTransaction` const requestPayload = magic.wallet.request.mock.calls[0][0]; expect(requestPayload.method).toBe('eth_sendGaslessTransaction'); - expect(requestPayload.params).toEqual([[address, sericalizedTranasction]]); + expect(requestPayload.params).toEqual([address, sericalizedTranasction]); }); test('method should return a PromiEvent', () => { From f2095931dc7fd07ea0f3fd6e04005bd9160a6dba Mon Sep 17 00:00:00 2001 From: Jay Hwang Date: Fri, 15 Sep 2023 07:32:48 +0900 Subject: [PATCH 3/3] Update yarn.lock --- yarn.lock | 94 +++++++++++++++++++++++++++---------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/yarn.lock b/yarn.lock index d2b9468bc..69654f84e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2817,7 +2817,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/algorand@workspace:packages/@magic-ext/algorand" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2826,8 +2826,8 @@ __metadata: resolution: "@magic-ext/aptos@workspace:packages/@magic-ext/aptos" dependencies: "@aptos-labs/wallet-adapter-core": ^2.2.0 - "@magic-sdk/commons": ^15.4.0 - "@magic-sdk/provider": ^19.4.0 + "@magic-sdk/commons": ^16.0.0 + "@magic-sdk/provider": ^20.0.0 aptos: ^1.8.5 peerDependencies: "@aptos-labs/wallet-adapter-core": ^2.2.0 @@ -2839,7 +2839,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/auth@workspace:packages/@magic-ext/auth" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2847,7 +2847,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/avalanche@workspace:packages/@magic-ext/avalanche" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2855,7 +2855,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/bitcoin@workspace:packages/@magic-ext/bitcoin" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2863,7 +2863,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/conflux@workspace:packages/@magic-ext/conflux" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2871,7 +2871,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/cosmos@workspace:packages/@magic-ext/cosmos" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2879,7 +2879,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/ed25519@workspace:packages/@magic-ext/ed25519" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2887,7 +2887,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/flow@workspace:packages/@magic-ext/flow" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 "@onflow/fcl": ^1.4.1 "@onflow/types": ^1.1.0 peerDependencies: @@ -2900,8 +2900,8 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/gdkms@workspace:packages/@magic-ext/gdkms" dependencies: - "@magic-sdk/commons": ^15.4.0 - "@magic-sdk/types": ^16.4.0 + "@magic-sdk/commons": ^16.0.0 + "@magic-sdk/types": ^17.0.0 "@peculiar/webcrypto": ^1.4.3 languageName: unknown linkType: soft @@ -2910,7 +2910,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/harmony@workspace:packages/@magic-ext/harmony" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2928,7 +2928,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/icon@workspace:packages/@magic-ext/icon" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2936,15 +2936,15 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/near@workspace:packages/@magic-ext/near" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft -"@magic-ext/oauth@^13.4.0, @magic-ext/oauth@workspace:packages/@magic-ext/oauth": +"@magic-ext/oauth@^14.0.0, @magic-ext/oauth@workspace:packages/@magic-ext/oauth": version: 0.0.0-use.local resolution: "@magic-ext/oauth@workspace:packages/@magic-ext/oauth" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 "@types/crypto-js": ~3.1.47 crypto-js: ^3.3.0 languageName: unknown @@ -2954,7 +2954,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/oidc@workspace:packages/@magic-ext/oidc" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2962,7 +2962,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/polkadot@workspace:packages/@magic-ext/polkadot" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -2970,7 +2970,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/react-native-bare-oauth@workspace:packages/@magic-ext/react-native-bare-oauth" dependencies: - "@magic-sdk/react-native-bare": ^20.4.0 + "@magic-sdk/react-native-bare": ^21.0.0 "@magic-sdk/types": ^10.0.1 "@types/crypto-js": ~3.1.47 crypto-js: ^3.3.0 @@ -2986,7 +2986,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/react-native-expo-oauth@workspace:packages/@magic-ext/react-native-expo-oauth" dependencies: - "@magic-sdk/react-native-expo": ^20.4.0 + "@magic-sdk/react-native-expo": ^21.0.0 "@magic-sdk/types": ^10.0.0 "@types/crypto-js": ~3.1.47 crypto-js: ^3.3.0 @@ -3001,7 +3001,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/solana@workspace:packages/@magic-ext/solana" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -3009,7 +3009,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/taquito@workspace:packages/@magic-ext/taquito" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -3017,7 +3017,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/terra@workspace:packages/@magic-ext/terra" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -3025,7 +3025,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/tezos@workspace:packages/@magic-ext/tezos" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -3033,7 +3033,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/webauthn@workspace:packages/@magic-ext/webauthn" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft @@ -3041,16 +3041,16 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/zilliqa@workspace:packages/@magic-ext/zilliqa" dependencies: - "@magic-sdk/commons": ^15.4.0 + "@magic-sdk/commons": ^16.0.0 languageName: unknown linkType: soft -"@magic-sdk/commons@^15.4.0, @magic-sdk/commons@workspace:packages/@magic-sdk/commons": +"@magic-sdk/commons@^16.0.0, @magic-sdk/commons@workspace:packages/@magic-sdk/commons": version: 0.0.0-use.local resolution: "@magic-sdk/commons@workspace:packages/@magic-sdk/commons" dependencies: - "@magic-sdk/provider": ^19.4.0 - "@magic-sdk/types": ^16.4.0 + "@magic-sdk/provider": ^20.0.0 + "@magic-sdk/types": ^17.0.0 peerDependencies: "@magic-sdk/provider": ">=18.6.0" "@magic-sdk/types": ">=15.8.0" @@ -3074,17 +3074,17 @@ __metadata: "@babel/core": ^7.9.6 "@babel/plugin-proposal-optional-chaining": ^7.9.0 "@babel/runtime": ^7.9.6 - "@magic-ext/oauth": ^13.4.0 - magic-sdk: ^19.4.0 + "@magic-ext/oauth": ^14.0.0 + magic-sdk: ^20.0.0 languageName: unknown linkType: soft -"@magic-sdk/provider@^19.4.0, @magic-sdk/provider@workspace:packages/@magic-sdk/provider": +"@magic-sdk/provider@^20.0.0, @magic-sdk/provider@workspace:packages/@magic-sdk/provider": version: 0.0.0-use.local resolution: "@magic-sdk/provider@workspace:packages/@magic-sdk/provider" dependencies: "@babel/plugin-transform-modules-commonjs": ^7.9.6 - "@magic-sdk/types": ^16.4.0 + "@magic-sdk/types": ^17.0.0 "@peculiar/webcrypto": ^1.1.7 eventemitter3: ^4.0.4 localforage: ^1.7.4 @@ -3096,7 +3096,7 @@ __metadata: languageName: unknown linkType: soft -"@magic-sdk/react-native-bare@^20.4.0, @magic-sdk/react-native-bare@workspace:packages/@magic-sdk/react-native-bare": +"@magic-sdk/react-native-bare@^21.0.0, @magic-sdk/react-native-bare@workspace:packages/@magic-sdk/react-native-bare": version: 0.0.0-use.local resolution: "@magic-sdk/react-native-bare@workspace:packages/@magic-sdk/react-native-bare" dependencies: @@ -3104,9 +3104,9 @@ __metadata: "@babel/core": ^7.15.0 "@babel/plugin-transform-flow-strip-types": ^7.14.5 "@babel/runtime": ~7.10.4 - "@magic-sdk/commons": ^15.4.0 - "@magic-sdk/provider": ^19.4.0 - "@magic-sdk/types": ^16.4.0 + "@magic-sdk/commons": ^16.0.0 + "@magic-sdk/provider": ^20.0.0 + "@magic-sdk/types": ^17.0.0 "@react-native-async-storage/async-storage": ^1.15.5 "@types/lodash": ^4.14.158 buffer: ~5.6.0 @@ -3132,7 +3132,7 @@ __metadata: languageName: unknown linkType: soft -"@magic-sdk/react-native-expo@^20.4.0, @magic-sdk/react-native-expo@workspace:packages/@magic-sdk/react-native-expo": +"@magic-sdk/react-native-expo@^21.0.0, @magic-sdk/react-native-expo@workspace:packages/@magic-sdk/react-native-expo": version: 0.0.0-use.local resolution: "@magic-sdk/react-native-expo@workspace:packages/@magic-sdk/react-native-expo" dependencies: @@ -3140,9 +3140,9 @@ __metadata: "@babel/core": ^7.15.0 "@babel/plugin-transform-flow-strip-types": ^7.14.5 "@babel/runtime": ~7.10.4 - "@magic-sdk/commons": ^15.4.0 - "@magic-sdk/provider": ^19.4.0 - "@magic-sdk/types": ^16.4.0 + "@magic-sdk/commons": ^16.0.0 + "@magic-sdk/provider": ^20.0.0 + "@magic-sdk/types": ^17.0.0 "@react-native-async-storage/async-storage": ^1.15.5 "@types/lodash": ^4.14.158 buffer: ~5.6.0 @@ -3168,7 +3168,7 @@ __metadata: languageName: unknown linkType: soft -"@magic-sdk/types@^16.4.0, @magic-sdk/types@workspace:packages/@magic-sdk/types": +"@magic-sdk/types@^17.0.0, @magic-sdk/types@workspace:packages/@magic-sdk/types": version: 0.0.0-use.local resolution: "@magic-sdk/types@workspace:packages/@magic-sdk/types" languageName: unknown @@ -12827,16 +12827,16 @@ fsevents@^2.3.2: languageName: unknown linkType: soft -"magic-sdk@^19.4.0, magic-sdk@workspace:packages/magic-sdk": +"magic-sdk@^20.0.0, magic-sdk@workspace:packages/magic-sdk": version: 0.0.0-use.local resolution: "magic-sdk@workspace:packages/magic-sdk" dependencies: "@babel/core": ^7.9.6 "@babel/plugin-proposal-optional-chaining": ^7.9.0 "@babel/runtime": ^7.9.6 - "@magic-sdk/commons": ^15.4.0 - "@magic-sdk/provider": ^19.4.0 - "@magic-sdk/types": ^16.4.0 + "@magic-sdk/commons": ^16.0.0 + "@magic-sdk/provider": ^20.0.0 + "@magic-sdk/types": ^17.0.0 localforage: ^1.7.4 localforage-driver-memory: ^1.0.5 languageName: unknown