Skip to content
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

Bindings for getting EVM address by Sei address and vice versa #75

Merged
merged 11 commits into from
Apr 9, 2024

Conversation

dssei
Copy link
Contributor

@dssei dssei commented Apr 8, 2024

Changes

Adding bindings for getting EVM address by Sei address and vice versa.
Building on top of sei-protocol/sei-chain#1466

Testing

  • unit/integration tests
  • local test contract deployment

deps: Deps<SeiQueryWrapper>,
evm_address: String,
) -> StdResult<SeiAddressResponse> {
let querier = SeiQuerier::new(&deps.querier);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a way to validate the evm_address similar to how we validate the sei_address above?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also should this be moved into the package itself as opposed to being in the tester contract?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline. TL;DR The library that I have tried ethaddr had to be rolledback due to unstable keccak dep. We may move validations down to lib itself in subsequent PRs (and add them all over to keep the code consistent)

@dssei dssei merged commit 7ac6c83 into main Apr 9, 2024
4 checks passed
@dssei dssei deleted the associated_address_binding branch April 9, 2024 17:16
@dssei dssei changed the title Bindings for getiting Bindings for getting EVM address by Sei address and vice versa Apr 10, 2024
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