forked from cerc-io/laconicd-deprecated
fix tests
This commit is contained in:
parent
beb1ad2df7
commit
b90bb05b3f
@ -10,4 +10,4 @@ record:
|
|||||||
chain_id: laconic_9000-1
|
chain_id: laconic_9000-1
|
||||||
network_id: "1392"
|
network_id: "1392"
|
||||||
genesis_hash:
|
genesis_hash:
|
||||||
/: f6fbe71210275adc7c7ef585a72c065cdb85f0c8d13dea0f229fd7c22d445a26
|
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
@ -110,7 +110,7 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
|
|||||||
®istrytypes.QueryListRecordsRequest{
|
®istrytypes.QueryListRecordsRequest{
|
||||||
Attributes: []*registrytypes.QueryListRecordsRequest_KeyValueInput{
|
Attributes: []*registrytypes.QueryListRecordsRequest_KeyValueInput{
|
||||||
{
|
{
|
||||||
Key: "metadata---chain_reference---ref---",
|
Key: "metadata---chain_reference---/---",
|
||||||
Value: ®istrytypes.QueryListRecordsRequest_ValueInput{
|
Value: ®istrytypes.QueryListRecordsRequest_ValueInput{
|
||||||
Type: "string",
|
Type: "string",
|
||||||
String_: "QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9",
|
String_: "QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9",
|
||||||
|
@ -241,7 +241,7 @@ func (k Keeper) ProcessSetRecord(ctx sdk.Context, msg types.MsgSetRecord) (*type
|
|||||||
resourceSignBytes, _ := record.GetSignBytes()
|
resourceSignBytes, _ := record.GetSignBytes()
|
||||||
cid, err := record.GetCID()
|
cid, err := record.GetCID()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Invalid record JSON")
|
return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, fmt.Sprint("Invalid record JSON, err=", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
record.ID = cid
|
record.ID = cid
|
||||||
|
2522
x/registry/types/attributes.pb.go
generated
2522
x/registry/types/attributes.pb.go
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user