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

Enrich deploy method and contract's metadata with optional gas limit and gas price hint for free transactions #363

Merged
merged 6 commits into from
Jun 3, 2024

Conversation

miloszm
Copy link
Contributor

@miloszm miloszm commented May 29, 2024

Enrich deploy method and contract's metadata with optional gas limit and gas price hint for free transactions,

Implements issue #357

@miloszm miloszm force-pushed the issue-357-limit-and-price-hint branch 3 times, most recently from 3a1d0b1 to 6a68f92 Compare May 29, 2024 11:15
@miloszm miloszm force-pushed the issue-357-limit-and-price-hint branch from 6a68f92 to ce772d8 Compare May 29, 2024 11:15
@miloszm miloszm requested a review from herr-seppia May 29, 2024 11:18
Copy link
Member

@ureeves ureeves left a comment

Choose a reason for hiding this comment

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

rkyv should be avoided in the host-contract ABI, due to it being too Rust-specific

piecrust-uplink/src/abi/state.rs Outdated Show resolved Hide resolved
piecrust-uplink/src/abi/state.rs Outdated Show resolved Hide resolved
piecrust/src/imports.rs Outdated Show resolved Hide resolved
@miloszm miloszm requested a review from ureeves May 31, 2024 10:12
Copy link
Member

@ureeves ureeves left a comment

Choose a reason for hiding this comment

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

The ABI of ext::free_limit and ext::free_price_hint can solely be used to signal a None as opposed to also using the first byte in the argument buffer. It feels like repetition to use both. Are you trying to include information about the existance of the contract in the ABI?

Also, the cast to usize is unnecessary I think.

piecrust-uplink/src/abi/state.rs Outdated Show resolved Hide resolved
piecrust-uplink/src/abi/state.rs Outdated Show resolved Hide resolved
@miloszm miloszm requested a review from ureeves May 31, 2024 15:37
Copy link
Member

@ureeves ureeves left a comment

Choose a reason for hiding this comment

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

LGTM

@miloszm miloszm merged commit 840e06d into main Jun 3, 2024
6 checks passed
@miloszm miloszm deleted the issue-357-limit-and-price-hint branch June 3, 2024 10:54
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.

2 participants