Skip to content

Commit

Permalink
remove unused mock
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronfigueiredo committed Sep 4, 2024
1 parent 3db63a7 commit d75006d
Showing 1 changed file with 1 addition and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,29 +155,6 @@ describe('Confirmation Redesign ERC20 Increase Allowance', function () {
});
});

async function mocked4BytesApprove(mockServer: MockttpServer) {
return await mockServer
.forGet('https://www.4byte.directory/api/v1/signatures/')
.withQuery({ hex_signature: '0x095ea7b3' })
.thenCallback(() => ({
statusCode: 200,
json: {
count: 1,
next: null,
previous: null,
results: [
{
id: 149,
created_at: '2016-07-09T03:58:29.617584Z',
text_signature: 'approve(address,uint256)',
hex_signature: '0x095ea7b3',
bytes_signature: '\t^§³',
},
],
},
}));
}

async function mocked4BytesIncreaseAllowance(mockServer: MockttpServer) {
return await mockServer
.forGet('https://www.4byte.directory/api/v1/signatures/')
Expand All @@ -202,10 +179,7 @@ async function mocked4BytesIncreaseAllowance(mockServer: MockttpServer) {
}

async function mocks(server: MockttpServer) {
return [
await mocked4BytesApprove(server),
await mocked4BytesIncreaseAllowance(server),
];
return [await mocked4BytesIncreaseAllowance(server)];
}

async function createERC20IncreaseAllowanceTransaction(driver: Driver) {
Expand Down

0 comments on commit d75006d

Please sign in to comment.