Skip to content

Commit

Permalink
comment out sendtransaction as it is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfengjin committed Aug 9, 2021
1 parent ccd1e79 commit d533bae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/evm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ type EVMProxy interface {
func NewEVMProxy(manager contract.Manager) (EVMProxy, error) {
registry := manager.GetKernRegistry()
p := proxy{}
registry.RegisterKernMethod("$evm", "SendTransaction", p.sendTransaction)
// SendTransaction is not used currently
// registry.RegisterKernMethod("$evm", "SendTransaction", p.sendTransaction)
registry.RegisterKernMethod("$evm", "SendRawTransaction", p.sendRawTransaction)
registry.RegisterKernMethod("$evm", "ContractCall", p.ContractCall)
return &p, nil
Expand Down Expand Up @@ -106,7 +107,7 @@ func (p *proxy) sendTransaction(ctx contract.KContext) (*contract.Response, erro

func (p *proxy) sendRawTransaction(ctx contract.KContext) (*contract.Response, error) {
args := ctx.Args()
signedTx := args["signedTx"]
signedTx := args["signed_tx"]
txHash := args["tx_hash"]
data, err := x.DecodeToBytes(string(signedTx))
if err != nil {
Expand Down

0 comments on commit d533bae

Please sign in to comment.