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

Axelar bridge docs use js, pythons, and Foundry increasing skill set and tools needed. #87

Open
brettmollin opened this issue Jun 6, 2024 · 1 comment

Comments

@brettmollin
Copy link
Contributor

ethers js library can be use to both encode and send transactions eliminating need for python and Foundry/cast

encoding

        // Define the data type and value
        const types = ['string'];
        const values = ['hello, world!'];

        // ABI encode the data
        const abiEncoded = ethers.utils.defaultAbiCoder.encode(types, values);

        // Compute the Keccak-256 hash of the ABI encoded data
        const keccakHash = ethers.utils.keccak256(abiEncoded);
@k4m4
Copy link
Contributor

k4m4 commented Jun 8, 2024

This was partially addressed in #88, where Python code was replaced with JS using the ethers.js library.

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

No branches or pull requests

2 participants