Skip to content

Commit

Permalink
add entrance for web3 rewarding
Browse files Browse the repository at this point in the history
  • Loading branch information
ququzone committed Dec 22, 2022
1 parent 3a0a688 commit ebafd6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/web3server_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebafd6c

Please sign in to comment.