Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ describe('GatorPermissionsController', () => {
frameworkContracts;

const delegation = {
delegate: '0x4f71DA06987BfeDE90aF0b33E1e3e4ffDCEE7a63',
delegator: '0xB68c70159E9892DdF5659ec42ff9BD2bbC23e778',
delegate: '0x4f71DA06987BfeDE90aF0b33E1e3e4ffDCEE7a63' as Hex,
delegator: '0xB68c70159E9892DdF5659ec42ff9BD2bbC23e778' as Hex,
authority: ROOT_AUTHORITY,
caveats: [
{
Expand All @@ -318,7 +318,7 @@ describe('GatorPermissionsController', () => {
amountPerSecond: hexToBigInt('0x6f05b59d3b20000'),
startTime: 1747699200,
}),
args: '0x',
args: '0x' as Hex,
},
],
salt: 0n,
Expand Down Expand Up @@ -372,8 +372,8 @@ describe('GatorPermissionsController', () => {
frameworkContracts;

const delegation = {
delegate: '0x4f71DA06987BfeDE90aF0b33E1e3e4ffDCEE7a63',
delegator: '0xB68c70159E9892DdF5659ec42ff9BD2bbC23e778',
delegate: '0x4f71DA06987BfeDE90aF0b33E1e3e4ffDCEE7a63' as Hex,
delegator: '0xB68c70159E9892DdF5659ec42ff9BD2bbC23e778' as Hex,
authority: ROOT_AUTHORITY,
caveats: [
{
Expand All @@ -384,7 +384,7 @@ describe('GatorPermissionsController', () => {
amountPerSecond: hexToBigInt('0x6f05b59d3b20000'),
startTime: 1747699200,
}),
args: '0x',
args: '0x' as Hex,
},
],
salt: 0n,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ describe('extractExpiryFromCaveatTerms', () => {
});

it('throws if timestampBeforeThreshold is zero', () => {
const terms = `0x${'0'.repeat(64)}`;
const terms = `0x${'0'.repeat(64)}` as const;

expect(() => extractExpiryFromCaveatTerms(terms)).toThrow(
'Invalid expiry: timestampBeforeThreshold must be greater than 0',
Expand Down
Loading