Skip to content

Commit 5bce990

Browse files
author
FT
authored
all: fix outdated ethereum wiki json-rpc json-rpc doc links (#32209)
Replace outdated wiki reference with ethereum.org documentation links
1 parent 1a5f399 commit 5bce990

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/ethapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ func (api *TransactionAPI) SendRawTransaction(ctx context.Context, input hexutil
15491549
//
15501550
// The account associated with addr must be unlocked.
15511551
//
1552-
// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign
1552+
// https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign
15531553
func (api *TransactionAPI) Sign(addr common.Address, data hexutil.Bytes) (hexutil.Bytes, error) {
15541554
// Look up the wallet containing the requested signer
15551555
account := accounts.Account{Address: addr}

internal/ethapi/errors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type revertError struct {
3434
}
3535

3636
// ErrorCode returns the JSON error code for a revert.
37-
// See: https://github.com/ethereum/wiki/wiki/JSON-RPC-Error-Codes-Improvement-Proposal
37+
// See: https://ethereum.org/en/developers/docs/apis/json-rpc/#error-codes
3838
func (e *revertError) ErrorCode() int {
3939
return 3
4040
}
@@ -71,7 +71,7 @@ func (e *TxIndexingError) Error() string {
7171
}
7272

7373
// ErrorCode returns the JSON error code for a revert.
74-
// See: https://github.com/ethereum/wiki/wiki/JSON-RPC-Error-Codes-Improvement-Proposal
74+
// See: https://ethereum.org/en/developers/docs/apis/json-rpc/#error-codes
7575
func (e *TxIndexingError) ErrorCode() int {
7676
return -32000 // to be decided
7777
}

0 commit comments

Comments
 (0)