Skip to content

Commit

Permalink
temp: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshutr committed Sep 25, 2024
1 parent 83f065e commit d67f811
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simulation/utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package simulation

import (
"github.com/modern-go/reflect2"

Check failure on line 7 in simulation/utilities.go

View workflow job for this annotation

GitHub Actions / test-coverage-upload

missing go.sum entry for module providing package github.com/modern-go/reflect2 (imported by github.com/AssetMantle/modules/simulation); to add:
"math/rand"

"github.com/AssetMantle/schema/data"
Expand Down Expand Up @@ -59,5 +60,6 @@ func CalculateBondAmount(immutables qualified.Immutables, mutables qualified.Mut
}

func ExecuteMessage(context sdkTypes.Context, module helpers.Module, message helpers.Message) (*sdkTypes.Result, error) {
return module.GetTransactions().GetTransaction(message.Type()).HandleMessage(sdkTypes.WrapSDKContext(context), message)
//TODO figure out an easier way to pick a transaction handle message from modules
return module.GetTransactions().GetTransaction(reflect2.TypeOf(message).String()).HandleMessage(sdkTypes.WrapSDKContext(context), message)
}

0 comments on commit d67f811

Please sign in to comment.