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

functions to support HexBytes or bytes as input #145

Open
dpaiton opened this issue Oct 17, 2024 · 0 comments
Open

functions to support HexBytes or bytes as input #145

dpaiton opened this issue Oct 17, 2024 · 0 comments

Comments

@dpaiton
Copy link
Contributor

dpaiton commented Oct 17, 2024

Currently Pypechain functions require bytes input (not HexBytes) for the position function call. We should fix this to allow for bytes | HexBytes input type.

e.g.

morpho_market_id = bytes(interface.morpho_market_id)

# Get token balances
vault_shares = (
    interface.morpho_contract.functions.position(morpho_market_id, hyperdrive_contract.address)
    .call(block_identifier=block_identifier or "latest")
    .supplyShares
)
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

1 participant