Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBC transfer precompile #1459

Closed
wants to merge 16 commits into from
Prev Previous commit
Next Next commit
bump the number of precompile
  • Loading branch information
dssei committed Mar 21, 2024
commit fab8312e96761c004da0764440043b4c3fde8ae9
6 changes: 3 additions & 3 deletions precompiles/ibc/IBC.sol
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

address constant BANK_PRECOMPILE_ADDRESS = 0x0000000000000000000000000000000000001008;
address constant IBC_PRECOMPILE_ADDRESS = 0x0000000000000000000000000000000000001009;

IBC constant BANK_CONTRACT = IBC(
BANK_PRECOMPILE_ADDRESS
IBC constant IBC_CONTRACT = IBC(
IBC_PRECOMPILE_ADDRESS
);

interface IBC {
Expand Down
2 changes: 1 addition & 1 deletion precompiles/ibc/ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import (
"bytes"
"embed"
"errors"

Check failure on line 6 in precompiles/ibc/ibc.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)
sdk "github.com/cosmos/cosmos-sdk/types"
clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
"github.com/ethereum/go-ethereum/accounts/abi"
Expand All @@ -18,7 +18,7 @@
)

const (
IBCAddress = "0x0000000000000000000000000000000000001008"
IBCAddress = "0x0000000000000000000000000000000000001009"
)

var _ vm.PrecompiledContract = &Precompile{}
Expand Down Expand Up @@ -60,12 +60,12 @@
evmKeeper: evmKeeper,
}

for name, m := range newAbi.Methods {
switch name {
case TransferMethod:
p.TransferID = m.ID
}
}

return p, nil
}
Expand Down
Loading