Skip to content

Simplify cross-contract calling docs - #531

Merged
davidsemakula merged 7 commits into
masterfrom
semakula/cross-contract-calls
Nov 14, 2025
Merged

Simplify cross-contract calling docs#531
davidsemakula merged 7 commits into
masterfrom
semakula/cross-contract-calls

Conversation

@davidsemakula

@davidsemakula davidsemakula commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator

Related PRs:

Details:

  • Simplify example for using statically generated contract references by
    • Assuming user has an address for an instance of the callee contract (i.e. callee is already deployed on-chain)
    • Removing steps for manually re-exporting the contract ref of the callee (this is now automatically done by codegen since Refactor contract ref generation and add automatic re-exporting ink#2710)
    • Introduce statically generated contract refs before manually defined contract refs
  • Use 20 bytes addresses (i.e. H160/ink::Address) in deployment and calling examples

@davidsemakula
davidsemakula marked this pull request as ready for review November 14, 2025 13:27
@davidsemakula
davidsemakula merged commit 43547c4 into master Nov 14, 2025
3 checks passed
@davidsemakula
davidsemakula deleted the semakula/cross-contract-calls branch November 14, 2025 13:38
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.

1 participant