Skip to content

Commit

Permalink
Overload Mina.Network method
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMinkov committed Mar 1, 2023
1 parent 2fb710c commit 0f847b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/mina.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ LocalBlockchain satisfies (...args: any) => Mina;
/**
* Represents the Mina blockchain running on a real network
*/
// TODO: Should this be an object instead?
function Network(graphqlEndpoint: string): Mina;
function Network(graphqlEndpoint: string, archiveEndpoint?: string): Mina {
let accountCreationFee = UInt64.from(defaultAccountCreationFee);
Fetch.setGraphqlEndpoint(graphqlEndpoint);
Expand Down

0 comments on commit 0f847b6

Please sign in to comment.