@agoric/cosmos 0.34.2-dev-4e588de.0 → 0.34.2-dev-d711f8f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/git-revision.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d711f8f
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmos",
|
|
3
|
-
"version": "0.34.2-dev-
|
|
3
|
+
"version": "0.34.2-dev-d711f8f.0+d711f8f",
|
|
4
4
|
"description": "Connect JS to the Cosmos blockchain SDK",
|
|
5
5
|
"parsers": {
|
|
6
6
|
"js": "mjs"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"typeCoverage": {
|
|
39
39
|
"atLeast": 0
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "d711f8fd3b97a47f8c7791439df8c6b4d7baaf21"
|
|
42
42
|
}
|
package/x/vtransfer/handler.go
CHANGED
|
@@ -5,7 +5,9 @@ import (
|
|
|
5
5
|
|
|
6
6
|
"github.com/Agoric/agoric-sdk/golang/cosmos/x/vtransfer/keeper"
|
|
7
7
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
sdkioerrors "cosmossdk.io/errors"
|
|
10
|
+
sdktypeserrors "github.com/cosmos/cosmos-sdk/types/errors"
|
|
9
11
|
)
|
|
10
12
|
|
|
11
13
|
// NewHandler returns a handler for "vtransfer" type messages.
|
|
@@ -14,7 +16,7 @@ func NewHandler(keeper keeper.Keeper) sdk.Handler {
|
|
|
14
16
|
switch msg := msg.(type) {
|
|
15
17
|
default:
|
|
16
18
|
errMsg := fmt.Sprintf("Unrecognized vtransfer Msg type: %T", msg)
|
|
17
|
-
return nil,
|
|
19
|
+
return nil, sdkioerrors.Wrap(sdktypeserrors.ErrUnknownRequest, errMsg)
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -10,7 +10,9 @@ import (
|
|
|
10
10
|
"github.com/cosmos/cosmos-sdk/store/prefix"
|
|
11
11
|
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
|
12
12
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
sdkioerrors "cosmossdk.io/errors"
|
|
15
|
+
sdktypeserrors "github.com/cosmos/cosmos-sdk/types/errors"
|
|
14
16
|
|
|
15
17
|
capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper"
|
|
16
18
|
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
|
|
@@ -249,7 +251,7 @@ func (k Keeper) InterceptOnRecvPacket(ctx sdk.Context, ibcModule porttypes.IBCMo
|
|
|
249
251
|
capName := host.ChannelCapabilityPath(portID, channelID)
|
|
250
252
|
chanCap, ok := k.vibcKeeper.GetCapability(ctx, capName)
|
|
251
253
|
if !ok {
|
|
252
|
-
err :=
|
|
254
|
+
err := sdkioerrors.Wrapf(channeltypes.ErrChannelCapabilityNotFound, "could not retrieve channel capability at: %s", capName)
|
|
253
255
|
return channeltypes.NewErrorAcknowledgement(err)
|
|
254
256
|
}
|
|
255
257
|
|
|
@@ -440,7 +442,7 @@ func (k Keeper) Receive(cctx context.Context, jsonRequest string) (jsonReply str
|
|
|
440
442
|
case "BRIDGE_TARGET_UNREGISTER":
|
|
441
443
|
prefixStore.Delete([]byte(msg.Target))
|
|
442
444
|
default:
|
|
443
|
-
return "",
|
|
445
|
+
return "", sdkioerrors.Wrapf(sdktypeserrors.ErrUnknownRequest, "unknown action type: %s", msg.Type)
|
|
444
446
|
}
|
|
445
447
|
return "true", nil
|
|
446
448
|
}
|