Skip to content

Conversation

@skywardboundd
Copy link
Contributor

Closes #3436

@skywardboundd skywardboundd linked an issue Jun 25, 2025 that may be closed by this pull request
@skywardboundd skywardboundd marked this pull request as ready for review June 25, 2025 15:39
@skywardboundd skywardboundd requested a review from a team as a code owner June 25, 2025 15:39
import "@ton/test-utils";
import { cached } from "@/test/utils/cache-state";
import { setStoragePrices } from "@/test/utils/gasUtils";
import { zeroStoragePrices } from "@/test/utils/gasUtils";
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd name this function using the verb as the first word.
What about removeStorageFee or something like that?

Copy link
Member

Choose a reason for hiding this comment

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

turnOffStorageFee or skipStorageFee would be some other alternatives

Shvandre
Shvandre previously approved these changes Jun 26, 2025
Kaladin13
Kaladin13 previously approved these changes Jun 26, 2025
Copy link
Contributor

@Kaladin13 Kaladin13 left a comment

Choose a reason for hiding this comment

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

LGTM modulo version bump

@anton-trunov
Copy link
Member

@skywardboundd merge conflicts :)

@novusnota novusnota dismissed stale reviews from Kaladin13 and Shvandre via bf34c19 October 23, 2025 20:08
@novusnota
Copy link
Member

Resolved merge conflicts

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +5 to +12
export function zeroStoragePrices(configRaw: Cell): Cell {
return setStoragePrices(configRaw, {
kind: "StoragePrices",
utime_since: 0,
bit_price_ps: 0n,
_cell_price_ps: 0n,
mc_bit_price_ps: 0n,
mc_cell_price_ps: 0n,

Choose a reason for hiding this comment

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

P0 Badge Incorrect StoragePrices field name breaks TypeScript compile

The new zeroStoragePrices helper constructs a StoragePrices object with _cell_price_ps. The generated type in @ton/sandbox/dist/config/config.tlb-gen exposes this property as cell_price_ps (no leading underscore). Because the required field is missing, TypeScript will reject the call to setStoragePrices, so any test importing this helper fails to compile. Use the correct field name when building the StoragePrices object.

Useful? React with 👍 / 👎.

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.

Use native sandbox methods in gasUtils

6 participants