-
Notifications
You must be signed in to change notification settings - Fork 14
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
Chore/improve eth contracts #69
base: master
Are you sure you want to change the base?
Conversation
@@ -67,27 +67,26 @@ contract Terabethia is Initializable, ITerabethiaCore { | |||
external | |||
returns (bytes32) | |||
{ | |||
simpleStorage().nonce += 1; |
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.
There is a PR open for this change already #27
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.
Yes, Its the fist commit of this branch I used it as base
@@ -27,19 +35,14 @@ contract EthProxy { | |||
terabethiaCore.consumeMessage(CANISTER_ADDRESS, payload); | |||
|
|||
// withdraw eth | |||
require( |
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.
Any reason this condition was removed?
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.
Yes, cause it is useless, its gonna fail anyways
@@ -61,4 +64,27 @@ contract EthProxy { | |||
// Send the message to the IC | |||
terabethiaCore.sendMessage(CANISTER_ADDRESS, payload); | |||
} | |||
|
|||
function send(address recipient, uint256 amount) |
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.
What is this function for? Also does just give arbitrary ownership of all funds in the contract to the owner?
can we merge this? 🙏 |
Description
ETH Proxy:
ERC20 Proxy