diff --git a/package.json b/package.json index 5d94b452f..b1e2431db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nevermined-io/sdk", - "version": "3.0.0-rc12", + "version": "3.0.0-rc13", "description": "Javascript SDK for connecting with Nevermined Data Platform ", "main": "./dist/node/sdk.js", "typings": "./dist/node/sdk.d.ts", diff --git a/src/keeper/contracts/ContractBase.ts b/src/keeper/contracts/ContractBase.ts index 5cb06986a..32c8f4e91 100644 --- a/src/keeper/contracts/ContractBase.ts +++ b/src/keeper/contracts/ContractBase.ts @@ -138,7 +138,7 @@ export abstract class ContractBase extends Instantiable { params, params.progress, ) - } else if (from.getType() === 'json-rpc') { + } else if (from.getType() === 'json-rpc' || from.getType() === 'zerodev') { this.logger.debug(`Blockchain Send using JSON-RPC account to ${functionName}`) return await this.localAccountSend( functionName, @@ -147,31 +147,34 @@ export abstract class ContractBase extends Instantiable { params, params.progress, ) - } else if (from.getType() === 'zerodev') { - this.logger.debug(`Blockchain Send using ZeroDev account`) - // TODO: Enable ZeroDev & Session Key Provider setup - // if (params.zeroDevSigner) { - // const paramsFixed = { ...params, signer: undefined } - // const contract = this.contract.connect(params.zeroDevSigner as any) - // return await this.internalSendZeroDev( - // name, - // from, - // args, - // paramsFixed, - // contract, - // params.progress, - // ) - // } else if (params.sessionKeyProvider) { - // const paramsFixed = { ...params, signer: undefined } - // return await this.internalSendSessionKeyProvider( - // name, - // from, - // args, - // paramsFixed, - // params.progress, - // ) - // } - } else { + } + // else if (from.getType() === 'zerodev') { + // this.logger.debug(`Blockchain Send using ZeroDev account`) + + // TODO: Enable ZeroDev & Session Key Provider setup + // if (params.zeroDevSigner) { + // const paramsFixed = { ...params, signer: undefined } + // const contract = this.contract.connect(params.zeroDevSigner as any) + // return await this.internalSendZeroDev( + // name, + // from, + // args, + // paramsFixed, + // contract, + // params.progress, + // ) + // } else if (params.sessionKeyProvider) { + // const paramsFixed = { ...params, signer: undefined } + // return await this.internalSendSessionKeyProvider( + // name, + // from, + // args, + // paramsFixed, + // params.progress, + // ) + // } + // } + else { throw new KeeperError(`Account not supported`) } }