Skip to content

Commit aa1e634

Browse files
committed
feat: remove werc20 precompile
Closes: #807 changelog fix tests temp
1 parent 4cf3c3b commit aa1e634

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+88
-3757
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
### DEPENDENCIES
66

7+
### API-BREAKING
8+
9+
- [\#808](https://github.com/cosmos/evm/pull/808) Remove werc20 precompile.
10+
711
### IMPROVEMENTS
812

913
- [\#758](https://github.com/cosmos/evm/pull/758) Cleanup precompiles abi.json.

api/cosmos/evm/erc20/v1/genesis.pulsar.go

Lines changed: 26 additions & 163 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

evmd/genesis.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ func NewEVMGenesisState() *evmtypes.GenesisState {
3939
func NewErc20GenesisState() *erc20types.GenesisState {
4040
erc20GenState := erc20types.DefaultGenesisState()
4141
erc20GenState.TokenPairs = testconstants.ExampleTokenPairs
42-
erc20GenState.NativePrecompiles = []string{testconstants.WEVMOSContractMainnet}
4342

4443
return erc20GenState
4544
}

evmd/tests/ibc/ics20_recursive_precompile_calls_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@ func (suite *ICS20RecursivePrecompileCallsTestSuite) SetupTest() {
227227
evmAppA.Erc20Keeper.GetTokenPair(suite.chainA.GetContext(), evmAppA.Erc20Keeper.GetTokenPairID(suite.chainA.GetContext(), bondDenom))
228228
// evmAppA.Erc20Keeper.SetNativePrecompile(suite.chainA.GetContext(), werc20.Address())
229229

230-
avail := evmAppA.Erc20Keeper.IsNativePrecompileAvailable(suite.chainA.GetContext(), common.HexToAddress("0xD4949664cD82660AaE99bEdc034a0deA8A0bd517"))
231-
suite.Require().True(avail)
232-
233230
evmAppB := suite.chainB.App.(*evmd.EVMD)
234231
suite.chainBPrecompile = ics20.NewPrecompile(
235232
evmAppB.BankKeeper,

evmd/tests/integration/precompiles/werc20/precompile_werc20_test.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

precompiles/werc20/IWERC20.sol

Lines changed: 0 additions & 36 deletions
This file was deleted.

precompiles/werc20/README.md

Lines changed: 0 additions & 175 deletions
This file was deleted.

0 commit comments

Comments
 (0)