fix: plasma bug
MODIFY
package.json
package.json
{
"name": "@maticnetwork/maticjs",
- "version": "3.6.0-beta.2",
+ "version": "3.6.0-beta.3",
"description": "Javascript developer library for interacting with Matic Network",
"main": "dist/npm.export.js",
"types": "dist/ts/index.d.ts",

MODIFY
src/hermez/index.ts
src/hermez/index.ts
@@ -15,7 +15,7 @@ export class HermezClient extends HermezBridgeClient<IHermezClientConfig> {
const client = this.client;
return client.init(config).then(_ => {
- const mainHermezContracts = client.mainContracts;
+ const mainHermezContracts = client.mainHermezContracts;
const hermezContracts = client.hermezContracts;
client.config = config = Object.assign(
{

MODIFY
src/pos/index.ts
src/pos/index.ts
@@ -25,7 +25,7 @@ export class POSClient extends BridgeClient<IPOSClientConfig> {
{
rootChainManager: mainPOSContracts.RootChainManagerProxy,
- rootChain: client.mainContracts.RootChainProxy
+ rootChain: client.mainPlasmaContracts.RootChainProxy
} as IPOSClientConfig,
config
);

MODIFY
src/utils/set_proof_api_url.ts
src/utils/set_proof_api_url.ts
@@ -14,7 +14,5 @@ export const setHermezProofApi = (url: string) => {
if (url[urlLength - 1] !== '/') {
url += '/';
}
- if (!service.hermezNetwork) {
service.hermezNetwork = new NetworkService(url);
- }
};

MODIFY
src/utils/web3_side_chain_client.ts
src/utils/web3_side_chain_client.ts
@@ -63,7 +63,7 @@ export class Web3SideChainClient<T_CONFIG> {
return this.abiManager.getConfig(path);
}
- get mainContracts() {
+ get mainPlasmaContracts() {
return this.getConfig("Main.Contracts");
}
@@ -72,7 +72,7 @@ export class Web3SideChainClient<T_CONFIG> {
}
get mainHermezContracts() {
- return this.getConfig("Main.zkEVMContracts");
+ return this.getConfig("Main.Contracts");
}
get hermezContracts() {

fix: plasma bug