Skip to content

Conversation

joaquim-verges
Copy link
Member

Problem solved

first SW transaction can run out of gas due to how we estimate gas for non deployed accounts. Added a 20% buffer to remediate, can probably be more accurate but this will help for now.

Changes made

  • Public API changes: none
  • Internal API changes: fix error swallowing when account has no balance, add 20% gas limit overhead

How to test

  • Automated tests: link to unit test file
  • Manual tests: script, cat attack

@joaquim-verges joaquim-verges requested a review from a team September 28, 2023 16:39
@changeset-bot
Copy link

changeset-bot bot commented Sep 28, 2023

🦋 Changeset detected

Latest commit: fb7af09

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

This PR includes changesets to release 9 packages
Name Type
@thirdweb-dev/sdk Patch
@thirdweb-dev/wallets Patch
thirdweb Patch
@thirdweb-dev/react-core Patch
@thirdweb-dev/react-native Patch
@thirdweb-dev/react Patch
@thirdweb-dev/unity-js-bridge Patch
@thirdweb-dev/auth Patch
@thirdweb-dev/react-native-compat 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

@joaquim-verges joaquim-verges added this pull request to the merge queue Sep 28, 2023
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
...kages/sdk/src/evm/core/classes/contract-wrapper.ts 49.40% <ø> (+0.18%) ⬆️

📢 Thoughts on this report? Let us know!.

Merged via the queue into main with commit c7e7ec9 Sep 28, 2023
@joaquim-verges joaquim-verges deleted the joaquim/fix_first_tx_sw_gas branch September 28, 2023 17:06
@github-actions github-actions bot mentioned this pull request Sep 28, 2023
jnsdls pushed a commit that referenced this pull request Jun 19, 2024
….22 (#1681)

Bumps [@solana/wallet-adapter-wallets](https://github.com/solana-labs/wallet-adapter) from 0.19.19 to 0.19.22.
- [Release notes](https://github.com/solana-labs/wallet-adapter/releases)
- [Commits](https://github.com/solana-labs/wallet-adapter/compare/@solana/wallet-adapter-wallets@0.19.19...@solana/wallet-adapter-wallets@0.19.22)

---
updated-dependencies:
- dependency-name: "@solana/wallet-adapter-wallets"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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