-
Notifications
You must be signed in to change notification settings - Fork 0
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
Channel #3
Conversation
This implements conversion between the types from the backend/go-perun (types.Participant, channel.State, channel.Params) and our wire representation types of the contract-types.
…dd MakeAccountAddress and ToAccountAddress functions. wire: Move MakeAccountAddress and ToAccountAddress to channel/types to avoid cyclic imports.
* Adapt tests to change of type wire: Include initialization of backend and randomizer for go-perun tests * Add tests for ToState, MakeState, ToParams, MakeParams. * Modify error handling wallet: Include NewRandomAddress for go-perun tests go.mod, go.sum: Update stellar/go library commit hash
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.
Some minor stuff, rest looks good
Please adjust the directory structure and place test files next to the code they test. Also use the convention package name e.g. |
* Adjust the remaining subpackages to this change * Change error handling t.Fatal -> require wire: Move test files to wire, rename package wallet: Move Randomizer initialization to wallet/test go.mod, go.sum: Adjust packages to fixes
return errors instead of panic in StellarAsset methods wire: Use methods from go-perun to make allocation for go-perun state
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.
lgtm
No description provided.