Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use actual kernel version for deployed contracts #328

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

johanneskares
Copy link
Contributor

@johanneskares johanneskares commented Nov 13, 2024

fix: #329

Copy link

changeset-bot bot commented Nov 13, 2024

🦋 Changeset detected

Latest commit: 9f08708

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
permissionless Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

try {
const contract = getContract({
address,
abi: [
Copy link

@hapetherw hapetherw Dec 3, 2024

Choose a reason for hiding this comment

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

I'd rather define abi as a constant variable for reusability.

const EIP712_DOMAIN_ABI = [ { type: "function", name: "eip712Domain", inputs: [], outputs: [ { name: "fields", type: "bytes1", internalType: "bytes1" }, { name: "name", type: "string", internalType: "string" }, { name: "version", type: "string", internalType: "string" }, { name: "chainId", type: "uint256", internalType: "uint256" }, { name: "verifyingContract", type: "address", internalType: "address" }, { name: "salt", type: "bytes32", internalType: "bytes32" }, { name: "extensions", type: "uint256[]", internalType: "uint256[]" }, ], stateMutability: "view", }, ];

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kernel Contracts: Support using already deployed contracts with different version
2 participants