Skip to content

Commit

Permalink
Change sendGaslessTransaction signature
Browse files Browse the repository at this point in the history
  • Loading branch information
octave08 committed Sep 27, 2023
1 parent 4fdb4d2 commit ba0ea20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@magic-sdk/provider/src/modules/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
GasApiResponse,
MagicPayloadMethod,
RequestUserInfoScope,
Transaction,
UserEnv,
UserInfo,
WalletInfo,
Expand Down Expand Up @@ -81,9 +82,9 @@ export class WalletModule extends BaseModule {
return this.request<boolean>(createJsonRpcRequestPayload(MagicPayloadMethod.ShowBalances));
}

public sendGaslessTransaction(address: string, serializedTransaction: string) {
public sendGaslessTransaction(address: string, transaction: Transaction) {
return this.request<GasApiResponse>(
createJsonRpcRequestPayload(MagicPayloadMethod.SendGaslessTransaction, [address, serializedTransaction]),
createJsonRpcRequestPayload(MagicPayloadMethod.SendGaslessTransaction, [address, transaction]),
);
}

Expand Down

0 comments on commit ba0ea20

Please sign in to comment.