Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SendToIbc event in smart contract #65

Merged
merged 11 commits into from
Sep 13, 2021
Prev Previous commit
Next Next commit
update CroBridge.sol
  • Loading branch information
thomas-nguy committed Sep 13, 2021
commit 0ad0841929de5be3821107a9c413dce113f7b6eb
4 changes: 1 addition & 3 deletions contracts/src/CroBridge.sol
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
pragma solidity ^0.6.11;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove this if it's not used?
if it's for integration testing, we could also move it to integration_tests/contracts/.


import "ds-token/token.sol";

contract CroBridge {

event __CronosSendToIbc(string recipient, uint256 amount);

// Pay the contract a certain CRO amount and trigger a CRO transfer
// from the contract to recipient through IBC
function send_cro_to_crypto_org(string recipient) public payable {
function send_cro_to_crypto_org(string memory recipient) public payable {
emit __CronosSendToIbc(recipient, msg.value);
}
}