Skip to content

v1.1.0

Latest
Compare
Choose a tag to compare
@rya-sge rya-sge released this 30 Apr 09:32
· 3 commits to main since this release
37fcea7

1.1.0 - 20240430

  • In the version 1.0.0, when fees are paid in native tokens, the function ccipSend from the CCIP router was called without the valueargument.

Old version

// Send CCIP Message
messageId = router.ccipSend(_destinationChainSelector, message); 

new version

if(_paymentMethodId == 0){ // Native token
	messageId = router.ccipSend{value: fees}(_destinationChainSelector, message); 
} else{
    messageId = router.ccipSend(_destinationChainSelector, message); 
}

Tests have been improved to catch this bug.

  • Chainlink has released a library (Chainlink local) to test Chainlink CCIP locally. This version includes a test using this simulator where fees are paid in native tokens.

  • This version adds also:

    • A public function getFee in order to know the fees from the router
    • A function setMessageDatato set the data inside the message if in the future, there is a change in the CCIP bridge. Current default value is an empty string
    • Rename the function setGasLimit in setMessageGasLimit to clearly indicate that it is the gas limit put in the message for CCIP.

Use
The release does not include the .git folder, which does not allow installing dependencies.
The easiest solution is to clone the project and perform a git checkout on the version tag

git clone https://github.com/taurusgroup/tg-bridge-contracts-CCIP
git checkout v1.1.0
forge install
forge build