Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
expertdicer committed Jan 18, 2025
1 parent 277f55f commit c8eb851
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions x/evm/keeper/erc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ func (e erc20Calls) loadERC20String(

erc20Bytes32Val := new(ERC20Bytes32)
if err := erc20Abi.UnpackIntoInterface(erc20Bytes32Val, methodName, res.Ret); err == nil {

return bytes32ToString(erc20Bytes32Val.Value), nil
}

Expand Down Expand Up @@ -269,7 +268,6 @@ func (e erc20Calls) loadERC20Uint8(
}

return 0, fmt.Errorf("failed to decode response for method %s; unable to unpack as uint8 or uint256", methodName)

Check warning on line 270 in x/evm/keeper/erc20.go

View check run for this annotation

Codecov / codecov/patch

x/evm/keeper/erc20.go#L270

Added line #L270 was not covered by tests

}

func (e erc20Calls) LoadERC20BigInt(
Expand Down
1 change: 0 additions & 1 deletion x/evm/keeper/funtoken_from_erc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func (k Keeper) FindERC20Metadata(
contract gethcommon.Address,
abi *gethabi.ABI,
) (info *ERC20Metadata, err error) {

effectiveAbi := embeds.SmartContract_ERC20Minter.ABI

if abi != nil {
Expand Down
1 change: 1 addition & 0 deletions x/evm/keeper/funtoken_from_erc20_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ func (s *FunTokenFromErc20Suite) TestFindMKRMetadata() {
"setName",
byteArray,
)
s.Require().NoError(err)

evmObj, _ := deps.NewEVM()
_, err = deps.EvmKeeper.CallContractWithInput(
Expand Down

0 comments on commit c8eb851

Please sign in to comment.