Skip to content

Commit

Permalink
feat: use ENTRYPOINT_ADDRESS_V06
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizgar91 committed Apr 23, 2024
1 parent 9abddf3 commit 3f85616
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
8 changes: 4 additions & 4 deletions integration/external/Zerodev.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import { config } from '../config'
import { getMetadata } from '../utils'
import { DDO } from '../../src/ddo'
import { ENTRYPOINT_ADDRESS_V07 } from 'permissionless'
import { ENTRYPOINT_ADDRESS_V06 } from 'permissionless'
import { getKernelClient } from '../../src/nevermined/utils/BlockchainViemUtils'
import { arbitrumSepolia } from 'viem/chains'

Expand Down Expand Up @@ -46,7 +46,7 @@ describe('Nevermined sdk with zerodev', () => {
kernelClient = await getKernelClient(
owner,
config.chainId as number,
ENTRYPOINT_ADDRESS_V07,
ENTRYPOINT_ADDRESS_V06,
PROJECT_ID,
)
})
Expand Down Expand Up @@ -171,14 +171,14 @@ describe('Nevermined sdk with zerodev', () => {
kernelClientPublisher = await getKernelClient(
publisher,
config.chainId as number,
ENTRYPOINT_ADDRESS_V07,
ENTRYPOINT_ADDRESS_V06,
PROJECT_ID,
)

kernelClientConsumer = await getKernelClient(
consumer,
config.chainId as number,
ENTRYPOINT_ADDRESS_V07,
ENTRYPOINT_ADDRESS_V06,
PROJECT_ID,
)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/sdk",
"version": "3.0.0-rc16",
"version": "3.0.0-rc17",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
12 changes: 2 additions & 10 deletions src/nevermined/NvmApp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ENTRYPOINT_ADDRESS_V07, providerToSmartAccountSigner } from 'permissionless'
import { ENTRYPOINT_ADDRESS_V06, providerToSmartAccountSigner } from 'permissionless'
import { NETWORK_FEE_DENOMINATOR } from '../constants/AssetConstants'
import { DDO } from '../ddo/DDO'
import { Web3Error } from '../errors/NeverminedErrors'
Expand Down Expand Up @@ -168,18 +168,10 @@ export class NvmApp {
const kernelClient = await getKernelClient(
smartAccountSigner,
config.chainId!,
ENTRYPOINT_ADDRESS_V07,
ENTRYPOINT_ADDRESS_V06,
config.zeroDevProjectId,
)

// const kernelClient = await createEcdsaKernelAccountClient({
// chain: config.chainId!,
// projectId: config.zeroDevProjectId,
// signer: smartAccountSigner,
// paymaster: 'SPONSOR',
// entryPointAddress: ENTRYPOINT_ADDRESS_V07,
// })

// const zerodevAccountSigner = zerodevProvider.getAccountSigner()
this.userAccount = await NvmAccount.fromZeroDevSigner(kernelClient)
// this.zeroDevSignerAccount = smartAccountSigner
Expand Down

0 comments on commit 3f85616

Please sign in to comment.