8
8
"math/big"
9
9
10
10
sdk "github.com/cosmos/cosmos-sdk/types"
11
-
12
11
"github.com/ethereum/go-ethereum/accounts/abi"
13
12
"github.com/ethereum/go-ethereum/common"
14
13
"github.com/ethereum/go-ethereum/core/vm"
@@ -19,7 +18,6 @@ import (
19
18
const (
20
19
SendMethod = "send"
21
20
SendFromCallerMethod = "sendFromCaller"
22
- SendFromOriginMethod = "sendFromOrigin"
23
21
BalanceMethod = "balance"
24
22
NameMethod = "name"
25
23
SymbolMethod = "symbol"
@@ -78,8 +76,6 @@ func NewPrecompile(bankKeeper pcommon.BankKeeper, evmKeeper pcommon.EVMKeeper) (
78
76
p .SendID = m .ID
79
77
case SendFromCallerMethod :
80
78
p .SendFromCallerID = m .ID
81
- case SendFromOriginMethod :
82
- p .SendFromOriginID = m .ID
83
79
case "balance" :
84
80
p .BalanceID = m .ID
85
81
case "name" :
@@ -127,8 +123,6 @@ func (p Precompile) Run(evm *vm.EVM, caller common.Address, input []byte) (bz []
127
123
return p .send (ctx , method , args )
128
124
case SendFromCallerMethod :
129
125
return p .send (ctx , method , append ([]interface {}{caller }, args ... ))
130
- case SendFromOriginMethod :
131
- return p .send (ctx , method , append ([]interface {}{evm .TxContext .Origin }, args ... ))
132
126
case BalanceMethod :
133
127
return p .balance (ctx , method , args )
134
128
case NameMethod :
@@ -249,8 +243,6 @@ func (Precompile) IsTransaction(method string) bool {
249
243
return true
250
244
case SendFromCallerMethod :
251
245
return true
252
- case SendFromOriginMethod :
253
- return true
254
246
default :
255
247
return false
256
248
}
0 commit comments