The provider in the SDK requires to know the base token address to be able to distinguish the transaction processing logic.
Therefore, we introduced base_token_addr in the contract config, then the zks_getBridgeContracts is able to read the config from the zkevm server.
This is a temp solution for the current cronos zkevm testnet. The matterlab team is implementing the sharing bridge and later we will stitch to use the upstream SDK directly when it is ready.
What ❔
The
provider
in the SDK requires to know the base token address to be able to distinguish the transaction processing logic.Therefore, we introduced
base_token_addr
in the contract config, then thezks_getBridgeContracts
is able to read the config from the zkevm server.This is a temp solution for the current cronos zkevm testnet. The matterlab team is implementing the sharing bridge and later we will stitch to use the upstream SDK directly when it is ready.