Skip to content

Commit

Permalink
Merge pull request #9 from rarimo/chains/mainnet-beta-v1.1.0-rc1
Browse files Browse the repository at this point in the history
Update v1.1.0-rc1
  • Loading branch information
olegfomenko authored Dec 6, 2023
2 parents 1e6c974 + bed14e8 commit 395b293
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,13 @@ func New(
},
)

app.UpgradeKeeper.SetUpgradeHandler(
"v1.1.0-rc1",
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
tmos.Exit(err.Error())
Expand Down
9 changes: 9 additions & 0 deletions x/oraclemanager/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func (k Keeper) EndBlocker(ctx sdk.Context) {
monitoringOperationTypes := map[rarimotypes.OpType]struct{}{
rarimotypes.OpType_TRANSFER: struct{}{},
rarimotypes.OpType_IDENTITY_GIST_TRANSFER: struct{}{},
rarimotypes.OpType_IDENTITY_STATE_TRANSFER: struct{}{},
rarimotypes.OpType_IDENTITY_DEFAULT_TRANSFER: struct{}{},
}

Expand Down Expand Up @@ -152,6 +153,14 @@ func getSourceChain(op rarimotypes.Operation) (string, error) {
return "", err
}

return transfer.Chain, nil

case rarimotypes.OpType_IDENTITY_STATE_TRANSFER:
transfer, err := pkg.GetIdentityStateTransfer(op)
if err != nil {
return "", err
}

return transfer.Chain, nil
}

Expand Down

0 comments on commit 395b293

Please sign in to comment.