From ebafd6cef785a657723ea04078899ee4eae93b28 Mon Sep 17 00:00:00 2001 From: ququzone Date: Thu, 22 Dec 2022 09:30:32 +0800 Subject: [PATCH] add entrance for web3 rewarding --- api/web3server_utils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/web3server_utils.go b/api/web3server_utils.go index 14374e9d31..047f7534b7 100644 --- a/api/web3server_utils.go +++ b/api/web3server_utils.go @@ -176,6 +176,9 @@ func (svr *web3Handler) ethTxToEnvelope(tx *types.Transaction) (action.Envelope, if to == address.StakingProtocolAddr { return elpBuilder.BuildStakingAction(tx) } + if to == address.RewardingProtocol { + return elpBuilder.BuildRewardingAction(tx) + } isContract, err := svr.checkContractAddr(to) if err != nil { return nil, err