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

Refactor OG RPC - Superseded #1832

Closed
wants to merge 64 commits into from
Closed

Refactor OG RPC - Superseded #1832

wants to merge 64 commits into from

Conversation

tudor-malene
Copy link
Collaborator

Why this change is needed

current code is structured for different assumptions, and does not permit extension

What changes were made as part of this PR

-todo

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

# Conflicts:
#	tools/walletextension/httpapi/routes.go
#	tools/walletextension/storage/database/mariadb/mariadb.go
#	tools/walletextension/storage/database/sqlite/sqlite.go
#	tools/walletextension/wallet_extension.go
@@ -49,11 +48,13 @@ func AwaitReceipt(ctx context.Context, client *obsclient.AuthObsClient, txHash g
var err error
err = retry.Do(func() error {
receipt, err = client.TransactionReceipt(ctx, txHash)
if err != nil && !errors.Is(err, rpc.ErrNilResponse) {
// we only retry for a nil "not found" response. This is a different error, so we bail out of the retry loop
if err != nil {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the ErrNilResponse error is non-standard

@@ -389,7 +397,7 @@ func testErrorHandling(t *testing.T, httpURL, wsURL string, w wallet.Wallet) {
for _, req := range []string{
`{"jsonrpc":"2.0","method":"eth_getBalance","params":["0xA58C60cc047592DE97BF1E8d2f225Fc5D959De77", "latest"],"id":1}`,
`{"jsonrpc":"2.0","method":"eth_getBalance","params":[],"id":1}`,
`{"jsonrpc":"2.0","method":"eth_getgetget","params":["0xA58C60cc047592DE97BF1E8d2f225Fc5D959De77", "latest"],"id":1}`,
//`{"jsonrpc":"2.0","method":"eth_getgetget","params":["0xA58C60cc047592DE97BF1E8d2f225Fc5D959De77", "latest"],"id":1}`,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

commented for now as it fails in a different place

@tudor-malene tudor-malene changed the title WIP - Refactor OG RPC Refactor OG RPC - Superseded Mar 20, 2024
@tudor-malene
Copy link
Collaborator Author

split into smaller bits

@tudor-malene tudor-malene deleted the tudor/refactor_gw_rpc branch February 13, 2025 11:34
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.

1 participant