-
Notifications
You must be signed in to change notification settings - Fork 3
add crosschain transfer contract #7
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
base: main
Are you sure you want to change the base?
Conversation
contracts/crosschain/Crosschain.sol
Outdated
| } | ||
|
|
||
| struct TransferResolver { | ||
| bytes initiatorSignature; |
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.
initiatorSignature needs to be part of the initial state, not the resolver.
contracts/crosschain/Crosschain.sol
Outdated
| ); | ||
|
|
||
| // Update state. | ||
| balance.amount[1] = balance.amount[0]; |
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.
Create should not be changing anything in the state. This is a pure function that just returns a boolean, so any state changes aren't persisted anywhere.
contracts/crosschain/Crosschain.sol
Outdated
| "CrosschainTransfer: INVALID_PREIMAGE" | ||
| ); | ||
|
|
||
| // Reduce CrosschainTransfer amount by optional fee. |
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.
"Reduce CrosschainTransfer amount by optional fee" -> "Reduce CrosschainTransfer amount to optional fee"
No description provided.