add more checks on grant addresses

This commit is contained in:
Mantas Vidutis 2022-11-24 12:15:17 -08:00
parent 94dbb54a38
commit 299b3ba384
No known key found for this signature in database
GPG Key ID: 60BDC8CD8FA60E29

View File

@ -111,6 +111,10 @@ describe("AuthzExtension", () => {
// Needs to respond with a grant
assertDefined(grant.authorization);
// Needs to have the correct granter and grantee
expect(grant.granter).toEqual(granter1Address);
expect(grant.grantee).toEqual(grantee1Address);
// Needs to be GenericAuthorization to decode it below
expect(grant.authorization.typeUrl).toEqual("/cosmos.authz.v1beta1.GenericAuthorization");
@ -133,6 +137,10 @@ describe("AuthzExtension", () => {
// Needs to respond with a grant
assertDefined(grant.authorization);
// Needs to have the correct granter and grantee
expect(grant.granter).toEqual(granter1Address);
expect(grant.grantee).toEqual(grantee1Address);
// Needs to be GenericAuthorization to decode it below
expect(grant.authorization.typeUrl).toEqual("/cosmos.authz.v1beta1.GenericAuthorization");