Skip to content

Commit

Permalink
fix: eth-block-tracker version
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s committed Jul 22, 2024
1 parent 18eb12d commit 6f881fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@metamask/eth-block-tracker": "^10.1.0",
"@metamask/eth-block-tracker": "^11.0.0",
"@metamask/eth-json-rpc-provider": "^4.1.0",
"@metamask/eth-sig-util": "^7.0.0",
"@metamask/json-rpc-engine": "^9.0.0",
Expand Down
10 changes: 1 addition & 9 deletions src/block-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { PollingBlockTracker } from '@metamask/eth-block-tracker';
import type { SafeEventEmitterProvider } from '@metamask/eth-json-rpc-provider';
import type { JsonRpcMiddleware } from '@metamask/json-rpc-engine';
import { createAsyncMiddleware } from '@metamask/json-rpc-engine';
import { serializeError } from '@metamask/rpc-errors';
import type { Json, JsonRpcParams } from '@metamask/utils';
import { klona } from 'klona/full';

Expand Down Expand Up @@ -65,14 +64,7 @@ export function createBlockRefMiddleware({
// perform child request
log('Performing another request %o', childRequest);
// copy child result onto original response
try {
const childResult = await provider.request<JsonRpcParams, Block>(
childRequest,
);
res.result = childResult;
} catch (error) {
res.error = serializeError(error);
}
res.result = await provider.request<JsonRpcParams, Block>(childRequest);

return undefined;
});
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -928,16 +928,16 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-block-tracker@npm:^10.1.0":
version: 10.1.0
resolution: "@metamask/eth-block-tracker@npm:10.1.0"
"@metamask/eth-block-tracker@npm:^11.0.0":
version: 11.0.0
resolution: "@metamask/eth-block-tracker@npm:11.0.0"
dependencies:
"@metamask/eth-json-rpc-provider": ^4.1.0
"@metamask/safe-event-emitter": ^3.0.0
"@metamask/utils": ^8.1.0
json-rpc-random-id: ^1.0.1
pify: ^5.0.0
checksum: 9fb7deeb177c6989481f5e7c11015c274c5b43eec43fc05a5a02f284f805d06887d429c6568cdec4fac1c0c51a5f7e6814b9413cc0d7eef46d993ad10dbe696a
checksum: 27a2622cda97626c80119629108f739aa745b0c704649e00f6841aac10410f23c00ab7feb272539ccf209f092648b1538aa87c1247185ced01c2993b68fb8db5
languageName: node
linkType: hard

Expand All @@ -952,7 +952,7 @@ __metadata:
"@metamask/eslint-config-jest": ^12.1.0
"@metamask/eslint-config-nodejs": ^12.1.0
"@metamask/eslint-config-typescript": ^12.1.0
"@metamask/eth-block-tracker": ^10.1.0
"@metamask/eth-block-tracker": ^11.0.0
"@metamask/eth-json-rpc-provider": ^4.1.0
"@metamask/eth-sig-util": ^7.0.0
"@metamask/json-rpc-engine": ^9.0.0
Expand Down

0 comments on commit 6f881fa

Please sign in to comment.