Skip to content

Commit

Permalink
chore: Remove redundant allowUnprotectedTxs (#2170)
Browse files Browse the repository at this point in the history
* chore: Remove allowUnprotectedTxs

* chore: add a line in changelog
  • Loading branch information
expertdicer authored Jan 21, 2025
1 parent 68d837f commit dc91b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ needed to include double quotes around the hexadecimal string.
- [#2168](https://github.com/NibiruChain/nibiru/pull/2168) - chore(evm-solidity): Move unrelated docs, gen-embeds, and add Solidity docs
- [#2165](https://github.com/NibiruChain/nibiru/pull/2165) - fix(evm): use Singleton StateDB pattern for EVM txs
- [#2169](https://github.com/NibiruChain/nibiru/pull/2169) - fix(evm): Better handling erc20 metadata
- [#2170](https://github.com/NibiruChain/nibiru/pull/2170) - chore: Remove redundant allowUnprotectedTxs
- [#2172](https://github.com/NibiruChain/nibiru/pull/2172) - chore: close iterator in IterateEpochInfo
-
#### Nibiru EVM | Before Audit 2 - 2024-12-06

The codebase went through a third-party [Code4rena
Expand Down
3 changes: 1 addition & 2 deletions app/evmante/evmante_sigverify.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ func (esvd EthSigVerificationDecorator) AnteHandle(
)
}

allowUnprotectedTxs := false
ethTx := msgEthTx.AsTransaction()
if !allowUnprotectedTxs && !ethTx.Protected() {
if !ethTx.Protected() {
return ctx, errors.Wrapf(
sdkerrors.ErrNotSupported,
"rejected unprotected Ethereum transaction. "+
Expand Down

0 comments on commit dc91b74

Please sign in to comment.