@automata-network/2fa-guru-sdk
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@automata-network/2fa-guru-sdk", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "./src/index.ts", | ||
@@ -5,0 +5,0 @@ "description": "A SDK for easy integration with 2FA Guru", |
@@ -199,3 +199,2 @@ import { JsonRpcProvider } from '@ethersproject/providers'; | ||
connectedWallet, | ||
['bytes', 'uint256', 'bytes'], | ||
encodedAddRecoveryTxn, | ||
@@ -284,3 +283,2 @@ parsedJsonResponse.result.signature, | ||
* @param connectedWallet - address of your connected primary wallet | ||
* @param functionParamTypes - types of the parameters for the contract call | ||
* @param encodedFunction - an encoded string that is made up of the contract methods and its parameters | ||
@@ -292,3 +290,2 @@ * @param signature - signature generated by geode | ||
connectedWallet: string, | ||
functionParamTypes: string[], | ||
encodedFunction: string, | ||
@@ -307,7 +304,6 @@ signature: string, | ||
); | ||
const packedData = ethers.utils.solidityPack(functionParamTypes, [ | ||
encodedFunction, | ||
this.deadline, | ||
signature, | ||
]); | ||
const packedData = ethers.utils.solidityPack( | ||
['bytes', 'uint256', 'bytes'], | ||
[encodedFunction, this.deadline, signature] | ||
); | ||
const tx = { | ||
@@ -314,0 +310,0 @@ to: targetContract, |
30376
953