Skip to content

Commit 5475caa

Browse files
committed
fix: add check on evm transaction tip (#1928) and fix: check authorisation address in the blocklist (#1924)
2 parents 5c763d4 + 05e102e commit 5475caa

7 files changed

Lines changed: 20 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
### Bug fixes
1515

1616
* [#1918](https://github.com/crypto-org-chain/cronos/pull/1918) Chore: cleanup and improve x/mint params validation and test in cosmos-sdk
17+
* [#1924](https://github.com/crypto-org-chain/cronos/pull/1924) Fix: check authorisation address in the blocklist
18+
* [#1928](https://github.com/crypto-org-chain/ethermint/pull/1928) Fix: add check on evm transaction tip
1719

1820
*Nov 30, 2025*
1921

app/block_address.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ func (bad BlockAddressesDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula
6262
return ctx, fmt.Errorf("signer is blocked: %s", addr.String())
6363
}
6464
}
65+
// check the target address
66+
if _, ok := bad.blockedMap[sdk.AccAddress(auth.Address.Bytes()).String()]; ok {
67+
return ctx, fmt.Errorf("authorisation address is blocked: %s", sdk.AccAddress(auth.Address.Bytes()).String())
68+
}
6569
}
6670
}
6771
}

app/proposal.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,14 @@ func (h *ProposalHandler) ValidateTransaction(tx sdk.Tx, txBz []byte) error {
198198
return fmt.Errorf("signer is blocked: %s", addr.String())
199199
}
200200
}
201+
// check the target address
202+
encoded, err := h.addressCodec.BytesToString(auth.Address.Bytes())
203+
if err != nil {
204+
return fmt.Errorf("invalid bech32 address: %s, err: %w", auth.Address, err)
205+
}
206+
if _, ok := h.blocklist[encoded]; ok {
207+
return fmt.Errorf("authorisation address is blocked: %s", encoded)
208+
}
201209
}
202210
}
203211
}

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
nativeByteOrder ? true, # nativeByteOrder mode will panic on big endian machines
1212
}:
1313
let
14-
version = "v1.6.0";
14+
version = "v1.6.1";
1515
pname = "cronosd";
1616
tags = [
1717
"ledger"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ replace (
307307
// release/v1.15
308308
github.com/ethereum/go-ethereum => github.com/crypto-org-chain/go-ethereum v1.10.20-0.20250815065500-a4fbafcae0dd
309309
// release/v0.22.x-cronosv1.6-optstaking
310-
github.com/evmos/ethermint => github.com/crypto-org-chain/ethermint v0.0.0-20251124090103-12d426c14aea
310+
github.com/evmos/ethermint => github.com/crypto-org-chain/ethermint v0.0.0-20251209082631-9310d036187d
311311
// Fix upstream GHSA-h395-qcrw-5vmq and GHSA-3vp4-m3rf-835h vulnerabilities.
312312
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
313313
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,8 @@ github.com/crypto-org-chain/cosmos-sdk/store v0.0.0-20241217090828-cfbca9fe8254
912912
github.com/crypto-org-chain/cosmos-sdk/store v0.0.0-20241217090828-cfbca9fe8254/go.mod h1:8DwVTz83/2PSI366FERGbWSH7hL6sB7HbYp8bqksNwM=
913913
github.com/crypto-org-chain/cosmos-sdk/x/tx v0.0.0-20241217090828-cfbca9fe8254 h1:JzLOFRiKsDtLJt5h0M0jkEIPDKvFFyja7VEp7gG6O9U=
914914
github.com/crypto-org-chain/cosmos-sdk/x/tx v0.0.0-20241217090828-cfbca9fe8254/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w=
915-
github.com/crypto-org-chain/ethermint v0.0.0-20251124090103-12d426c14aea h1:H1hoG9J3ElBeAL3RzJufa0VvR6+hEqXDvp+ME7sKhpI=
916-
github.com/crypto-org-chain/ethermint v0.0.0-20251124090103-12d426c14aea/go.mod h1:/E17R2sdjWWygJJP+ZSh3CkfJD2U8Z4HbA85iObApoc=
915+
github.com/crypto-org-chain/ethermint v0.0.0-20251209082631-9310d036187d h1:VR4tgpFlr3M5g0IoUoIKZz/8BIGmYJVMb2HjS/VO7ho=
916+
github.com/crypto-org-chain/ethermint v0.0.0-20251209082631-9310d036187d/go.mod h1:/E17R2sdjWWygJJP+ZSh3CkfJD2U8Z4HbA85iObApoc=
917917
github.com/crypto-org-chain/go-block-stm v0.0.0-20241213061541-7afe924fb4a6 h1:6KPEi8dWkDSBddQb4NAvEXmNnTXymF3yVeTaT4Hz1iU=
918918
github.com/crypto-org-chain/go-block-stm v0.0.0-20241213061541-7afe924fb4a6/go.mod h1:iwQTX9xMX8NV9k3o2BiWXA0SswpsZrDk5q3gA7nWYiE=
919919
github.com/crypto-org-chain/go-ethereum v1.10.20-0.20250815065500-a4fbafcae0dd h1:ebSnzvM9yKVGFjvoGly7LFQQCS2HuOWMCvQyByJ52Gs=

gomod2nix.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ schema = 3
315315
version = "v0.2.2"
316316
hash = "sha256-0MLfSJKdeK3Z7tWAXTdzwB4091dmyxIX38S5SKH5QAw="
317317
[mod."github.com/evmos/ethermint"]
318-
version = "v0.0.0-20251124090103-12d426c14aea"
319-
hash = "sha256-4C9kaSpyzHGtM1mY5UC6HiWpZZDoG2P/2vNQ/zO9bzc="
318+
version = "v0.0.0-20251209082631-9310d036187d"
319+
hash = "sha256-HOeM1ZgA3m6w3zrxMTKBplrMt5sF744UHeLrE9ubDi4="
320320
replaced = "github.com/crypto-org-chain/ethermint"
321321
[mod."github.com/fatih/color"]
322322
version = "v1.17.0"

0 commit comments

Comments
 (0)