Skip to content

Commit

Permalink
Fix side chain ID issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Jul 18, 2022
1 parent beb5490 commit e571493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/stake/cross_stake/cross_stake.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cross_stake

import (
"fmt"
"strconv"

"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down Expand Up @@ -77,6 +78,7 @@ func (app *CrossStakeApp) ExecuteSynPackage(ctx sdk.Context, payload []byte, rel

func (app *CrossStakeApp) handleDelegate(ctx sdk.Context, pack types.CrossStakeDelegateSynPackage, relayFee int64) (sdk.ExecuteResult, error) {
sideChainId := app.stakeKeeper.ScKeeper.BscSideChainId(ctx)
ctx.Logger().With("module", "oracle").Info(fmt.Sprintf("test bsc side chain id=%s", sideChainId))
if scCtx, err := app.stakeKeeper.ScKeeper.PrepareCtxForSideChain(ctx, sideChainId); err != nil {
return sdk.ExecuteResult{}, err
} else {
Expand Down

0 comments on commit e571493

Please sign in to comment.