Skip to content

Commit c9eaadf

Browse files
committed
fix: readme
1 parent 731d0f3 commit c9eaadf

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

README.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Connect SDK
1+
# Connect Viem SDK
22

33
Cometh Connect Viem SDK allows developers to onboard their users with a seedless, gasless experience familiar to Web2 using Biometrics and web2 logins.
44

@@ -45,9 +45,9 @@ You can also connect to a previously created wallet. You'll have to provide the
4545
await wallet.connect(walletAddress)
4646
```
4747

48-
## Instanciate a Connect Viem Client
48+
## Instanciate a Connect viem Client
4949

50-
After creating (or reconnecting) to a connect wallet, you can now create a connectViemClient or connectViemAccount:
50+
After creating (or reconnecting) to a connect wallet, you can now create a connectViemClient:
5151

5252
```javascript
5353
import {
@@ -101,13 +101,6 @@ This function relays the transaction data to the target address. The transaction
101101
### Send Batch transactions
102102

103103
```javascript
104-
import { encodeFunctionData } from 'viem'
105-
106-
const txCallData = encodeFunctionData({
107-
abi: CONTRACT_ABI,
108-
functionName: CONTRACT_METHOD
109-
})
110-
111104
const txBatch = [
112105
{ to: DESTINATION, value: VALUE, data: txCallData },
113106
{ to: DESTINATION, value: VALUE, data: txCallData }
@@ -164,13 +157,6 @@ Sign the given message using the EOA, owner of the smart wallet.
164157
### Sign Transaction
165158

166159
```javascript
167-
import { encodeFunctionData } from 'viem'
168-
169-
const txCallData = encodeFunctionData({
170-
abi: CONTRACT_ABI,
171-
functionName: CONTRACT_METHOD
172-
})
173-
174160
const tx = { to: DESTINATION, value: VALUE, data: txCallData }
175161

176162
const signature = await connectViemAccount.signTransaction(tx)

0 commit comments

Comments
 (0)