darwinia-network / darwinia-messages-sol

Darwinia cross-chain messages gateway and protocol for EVM developers 💌
MIT License
29 stars 8 forks source link

Use interface to interact precompile instead of low call #87

Closed hujw77 closed 2 years ago

hujw77 commented 2 years ago

https://github.com/darwinia-network/darwinia-bridge-sol/blob/1a9b67755e7f44f97a1c0545b59454a1b5f25f78/contracts/mapping-token/contracts/darwinia/Sub2SubMappingTokenFactory.sol#L63

xiaoch05 commented 2 years ago

right now we cannot fix this issue because the dvm does not support calling precompile contract by interface. see https://github.com/darwinia-network/darwinia-common/issues/916 and we add interface of the precompile contract to tell developers how to use it. https://github.com/darwinia-network/darwinia-bridge-sol/pull/88