Skip to content

Commit dd53fda

Browse files
authored
fix(evm): disable unprotected tx check in EVM ante handler (#2219)
* fix(evm): disable unprotected tx check in EVM ante handler * chore: update changelog
1 parent 78a5b08 commit dd53fda

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Simplify GitHub actions based on conditional paths, removing the need for files
5252
- [#2214](https://github.com/NibiruChain/nibiru/pull/2214) - chore(wasm): bump wasmvm to `v1.5.8`
5353
- [#2068](https://github.com/NibiruChain/nibiru/pull/2068) - feat: enable wasm light clients on IBC (08-wasm)
5454
- [#2217](https://github.com/NibiruChain/nibiru/pull/2217) - fix: app-db-backend not recognized on prune command
55+
- [#2219](https://github.com/NibiruChain/nibiru/pull/2219) - fix(evm): disable unprotected tx check in EVM ante handler
5556

5657
## [v2.0.0-p1](https://github.com/NibiruChain/nibiru/releases/tag/v2.0.0-p1) - 2025-02-10
5758

app/evmante/evmante_sigverify.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ func (esvd EthSigVerificationDecorator) AnteHandle(
4848
}
4949

5050
ethTx := msgEthTx.AsTransaction()
51-
if !ethTx.Protected() {
52-
return ctx, errors.Wrapf(
53-
sdkerrors.ErrNotSupported,
54-
"rejected unprotected Ethereum transaction. "+
55-
"Please EIP155 sign your transaction to protect it against replay-attacks",
56-
)
57-
}
51+
// if !ethTx.Protected() {
52+
// return ctx, errors.Wrapf(
53+
// sdkerrors.ErrNotSupported,
54+
// "rejected unprotected Ethereum transaction. "+
55+
// "Please EIP155 sign your transaction to protect it against replay-attacks",
56+
// )
57+
// }
5858

5959
sender, err := signer.Sender(ethTx)
6060
if err != nil {

app/evmante/evmante_sigverify_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (s *TestSuite) TestEthSigVerificationDecorator() {
2626
tx := evmtest.HappyCreateContractTx(deps)
2727
return tx
2828
},
29-
wantErr: "rejected unprotected Ethereum transaction",
29+
wantErr: "couldn't retrieve sender address from the ethereum transaction: invalid transaction v, r, s values: tx intended signer does not match the given signer",
3030
},
3131
{
3232
name: "sad: non ethereum tx",

0 commit comments

Comments
 (0)