diff --git a/x/alliance/bindings/query_plugin.go b/x/alliance/bindings/query_plugin.go index 2f9010f..ed3fa6a 100644 --- a/x/alliance/bindings/query_plugin.go +++ b/x/alliance/bindings/query_plugin.go @@ -73,7 +73,7 @@ func (q *QueryPlugin) GetAlliance(ctx sdk.Context, denom string) (res []byte, er }, IsInitialized: asset.IsInitialized, }) - return + return res, err } func (q *QueryPlugin) GetDelegation(ctx sdk.Context, denom string, delegator string, validator string) (res []byte, err error) { diff --git a/x/alliance/bindings/tests/query_plugin_test.go b/x/alliance/bindings/tests/query_plugin_test.go index abaa9a2..abd021f 100644 --- a/x/alliance/bindings/tests/query_plugin_test.go +++ b/x/alliance/bindings/tests/query_plugin_test.go @@ -200,7 +200,7 @@ func TestDelegationRewardsQuery(t *testing.T) { Rewards: []sdk.Coin{ { Denom: "stake", - Amount: sdk.NewInt(2000000), + Amount: math.NewInt(2000000), }, }, }, response)