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

chore: ensure backward compatibility with remoteEntry.js of snap v2.9.0 #355

Merged
merged 11 commits into from
Sep 19, 2024

Conversation

khanti42
Copy link
Collaborator

PR Description:

Backward Compatibility for Request Parameters

This PR ensures backward compatibility with version 2.9.0 for StarkNet-related methods (starknet_sign*, starknet_execute, and starknet_declare).

  • signerAddress to address mapping: In older versions, starknet_sign* methods used the signerAddress field. This update ensures that if signerAddress is passed in the request, it is mapped to the address field required by the new version.

  • senderAddress to address mapping: Similarly, for starknet_execute and starknet_declare, which previously used senderAddress, the PR adds logic to map this to address.

By handling both signerAddress and senderAddress, this update allows for smooth transitions to the new parameter structure without breaking existing integrations.

@khanti42 khanti42 requested a review from a team as a code owner September 19, 2024 12:31
@khanti42 khanti42 requested review from Julink-eth and wantedsystem and removed request for a team September 19, 2024 12:31
Copy link

sonarcloud bot commented Sep 19, 2024

Quality Gate Passed Quality Gate passed for 'consensys_starknet-snap-starknet-snap'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Sep 19, 2024

Quality Gate Passed Quality Gate passed for 'consensys_starknet-snap-wallet-ui'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@khanti42 khanti42 added this pull request to the merge queue Sep 19, 2024
Merged via the queue into main with commit cdd17c6 Sep 19, 2024
24 checks passed
@khanti42 khanti42 deleted the chore/sf-695 branch September 19, 2024 12:46
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.

2 participants