Skip to content

Conversation

@jakekidd
Copy link

No description provided.

@jakekidd jakekidd changed the title add : crosschain transfer contract add crosschain transfer contract Jun 16, 2021
}

struct TransferResolver {
bytes initiatorSignature;
Copy link
Contributor

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.

);

// Update state.
balance.amount[1] = balance.amount[0];
Copy link
Contributor

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.

"CrosschainTransfer: INVALID_PREIMAGE"
);

// Reduce CrosschainTransfer amount by optional fee.
Copy link
Contributor

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants