cronos-labs / cronos-zkevm

Apache License 2.0
8 stars 2 forks source link

Problem: missing base token address info in API #43

Closed JayT106 closed 3 months ago

JayT106 commented 7 months ago

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 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.