Skip to content

Commit 21dd42a

Browse files
yzang2019udpatil
authored andcommitted
Remove SendFromOriginMethod from Bank precompile
1 parent ee79318 commit 21dd42a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

precompiles/bank/bank.go

-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"math/big"
99

1010
sdk "github.com/cosmos/cosmos-sdk/types"
11-
1211
"github.com/ethereum/go-ethereum/accounts/abi"
1312
"github.com/ethereum/go-ethereum/common"
1413
"github.com/ethereum/go-ethereum/core/vm"
@@ -19,7 +18,6 @@ import (
1918
const (
2019
SendMethod = "send"
2120
SendFromCallerMethod = "sendFromCaller"
22-
SendFromOriginMethod = "sendFromOrigin"
2321
BalanceMethod = "balance"
2422
NameMethod = "name"
2523
SymbolMethod = "symbol"
@@ -78,8 +76,6 @@ func NewPrecompile(bankKeeper pcommon.BankKeeper, evmKeeper pcommon.EVMKeeper) (
7876
p.SendID = m.ID
7977
case SendFromCallerMethod:
8078
p.SendFromCallerID = m.ID
81-
case SendFromOriginMethod:
82-
p.SendFromOriginID = m.ID
8379
case "balance":
8480
p.BalanceID = m.ID
8581
case "name":
@@ -127,8 +123,6 @@ func (p Precompile) Run(evm *vm.EVM, caller common.Address, input []byte) (bz []
127123
return p.send(ctx, method, args)
128124
case SendFromCallerMethod:
129125
return p.send(ctx, method, append([]interface{}{caller}, args...))
130-
case SendFromOriginMethod:
131-
return p.send(ctx, method, append([]interface{}{evm.TxContext.Origin}, args...))
132126
case BalanceMethod:
133127
return p.balance(ctx, method, args)
134128
case NameMethod:
@@ -249,8 +243,6 @@ func (Precompile) IsTransaction(method string) bool {
249243
return true
250244
case SendFromCallerMethod:
251245
return true
252-
case SendFromOriginMethod:
253-
return true
254246
default:
255247
return false
256248
}

0 commit comments

Comments
 (0)