Skip to content

(feat)!: upgrade to geth 1.13 #181

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

Merged
merged 156 commits into from
May 26, 2025
Merged

(feat)!: upgrade to geth 1.13 #181

merged 156 commits into from
May 26, 2025

Conversation

vladjdk
Copy link
Member

@vladjdk vladjdk commented May 23, 2025

forks #116

cloudgray and others added 30 commits April 9, 2025 17:19
* feat(x/erc20): add allowance state

* test(x/erc20): add unit test for Allowance

* fix(x/erc20): add deleteAllowances method and modify genesis validation

* fix(x/erc20): validation of SetAllowance/GetAllowance and InitGenesis

* test(x/erc20) add test cases for UnsafeSetAllowance

* chore: fix lint
Expect(s.network.NextBlock()).To(BeNil())

balRes, err := s.grpcHandler.GetBalanceFromBank(s.keyring.GetAccAddr(0), s.bondDenom)
Expect(err).To(BeNil())
finalBalance := balRes.Balance
fees := math.NewIntFromUint64(txRes.GasUsed).Mul(math.NewIntFromBigInt(txArgs.GasPrice))
Expect(finalBalance.Amount.Equal(initialBalance.Amount.Sub(fees))).To(BeTrue(), "expected final balance must be initial balance minus any gas spent")
expectedGasCost := math.NewInt(79_416_000_000_000)
Copy link
Member Author

Choose a reason for hiding this comment

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

Gas increased from 79_415_000_000_000 to 79_416_000_000_000. My theory is it's a small opcode gas diff with the new geth, but not 100% sure

if stateObject == nil {
return
}
s.SelfDestruct(addr)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not equivalent to upstream. The SelfDestruct6780 call should only run on contracts which were created in the same txn.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we'll need CreateContract added in here--we should track that against 1.15 upgrade and leave as is.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added this thread in the todos

@vladjdk vladjdk merged commit 32be4de into main May 26, 2025
23 of 24 checks passed
@vladjdk vladjdk deleted the release/v0.1.x-tac branch May 26, 2025 21:58
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.

7 participants