add more checks on grant addresses
This commit is contained in:
parent
94dbb54a38
commit
299b3ba384
@ -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");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user