-
Notifications
You must be signed in to change notification settings - Fork 241
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
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d28a648
add unit test
thomas-nguy 67eb2e2
fix IbcTransferCoins logic for hook case
thomas-nguy 98ecb24
support transferToIbc log event in smart contract
thomas-nguy aa44971
add solidity contracts
thomas-nguy a07d7a4
fix comments and logic check
thomas-nguy c156067
update changelog
thomas-nguy 0ad0841
update CroBridge.sol
thomas-nguy de9b933
rename evm events
thomas-nguy 62858c7
fix tests
thomas-nguy 54b91af
add different error message for invalid denom and non associated coin…
thomas-nguy fc9e5a2
update CroBridge.sol solidity version
thomas-nguy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update CroBridge.sol
- Loading branch information
commit 0ad0841929de5be3821107a9c413dce113f7b6eb
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
pragma solidity ^0.6.11; | ||
|
||
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); | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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/
.