Skip to content

Commit

Permalink
refactor: ensure retro compatibility by exporting JsonRpcProvider and…
Browse files Browse the repository at this point in the history
… JsonRpcPublicProvider as Web3Provider
  • Loading branch information
Ben-Rey committed Jan 2, 2025
1 parent d448199 commit badf484
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/provider/jsonRpcProvider/jsonRpcProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,3 +382,6 @@ export class JsonRpcProvider extends JsonRpcPublicProvider implements Provider {
return this.client.executeReadOnlyCall(readOnlyParams)
}
}

// This line ensure retro compatibility with the previous version of massa-web3
export { JsonRpcProvider as Web3Provider }

0 comments on commit badf484

Please sign in to comment.