Skip to content

Commit

Permalink
fix: sequencer fetchEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkelawala committed Jan 2, 2023
1 parent d34c46a commit 7206d77
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/provider/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,7 @@ export class SequencerProvider implements ProviderInterface {
}

if (endpoint === 'estimate_fee') {
return parseAlwaysAsBig(textResponse, (_, v) => {
if (v && typeof v === 'bigint') {
return toBigInt(v.toString());
}
return v;
});
return parseAlwaysAsBig(textResponse);
}
return parse(textResponse) as Sequencer.Endpoints[T]['RESPONSE'];
} catch (err) {
Expand Down

0 comments on commit 7206d77

Please sign in to comment.