Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Rpc 0.2.1 v1 Transaction and Edpoint #402

Merged
merged 3 commits into from
Nov 21, 2022
Merged

Conversation

tabaktoni
Copy link
Collaborator

Motivation and Resolution

Infura does not use rpc/v0.2 endpoint, so we restored to open entry for node RPC
The issue raised from Telegram/Slack

RPC version (if applicable)

0.2.1

Usage related changes

  • nodeUrl should contain the full path to the node providing RPC 0.2.1

Checklist:

  • Performed a self-review of the code
  • Rebased to the last commit of the target branch (or merged it into my branch)
  • Linked the issues which this PR resolves
  • Documented the changes
  • Updated the docs (www)
  • Updated the tests
  • All tests are passing

@netlify
Copy link

netlify bot commented Nov 21, 2022

Deploy Preview for starknetjs canceled.

Name Link
🔨 Latest commit 11d9079
🔍 Latest deploy log https://app.netlify.com/sites/starknetjs/deploys/637b74c265c8a10009d0fdd4

@@ -242,7 +242,7 @@ export class RpcProvider implements ProviderInterface {
return this.fetchEndpoint('starknet_estimateFee', {
request: {
type: 'INVOKE',
contract_address: invocation.contractAddress,
sender_address: invocation.contractAddress,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the entry parameter is contractAddress but used as sender_address.
This is left to be like this because of Sequencer.

@tabaktoni tabaktoni requested a review from penovicp November 21, 2022 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants