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

Added variable-length contract address support #65

Merged
merged 2 commits into from
May 28, 2024

Conversation

NoahSaso
Copy link
Member

Closes #64

This adds the ability to specify the contract address length used by the chain when instantiating the voice contract. This is required because some chains (such as Injective) use non-standard contract address lengths. Typically they are 32, but Injective uses 20.

This also adds a query to fetch the sender information from the voice given a proxy address.

@NoahSaso NoahSaso requested review from JakeHartnell and bekauz May 26, 2024 20:33
@NoahSaso NoahSaso force-pushed the noah/variable-contract-addr-len branch 2 times, most recently from 7304d5e to dce1fdb Compare May 26, 2024 20:48
@NoahSaso NoahSaso force-pushed the noah/variable-contract-addr-len branch from dce1fdb to c646f34 Compare May 26, 2024 20:55
Copy link

@Reecepbcups Reecepbcups left a comment

Choose a reason for hiding this comment

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

2 comments, LGTM otherwise !

contracts/main/voice/src/contract.rs Show resolved Hide resolved
tests/strangelove/suite.go Show resolved Hide resolved
@NoahSaso NoahSaso force-pushed the noah/variable-contract-addr-len branch from c958048 to 669b353 Compare May 28, 2024 16:27
@NoahSaso NoahSaso force-pushed the noah/variable-contract-addr-len branch from 669b353 to a71be1f Compare May 28, 2024 16:29
@NoahSaso NoahSaso requested a review from Reecepbcups May 28, 2024 18:04
@NoahSaso NoahSaso merged commit 47cb9a2 into main May 28, 2024
6 checks passed
@JakeHartnell JakeHartnell deleted the noah/variable-contract-addr-len branch May 28, 2024 19:16
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.

Voice does not work on Injective
3 participants