mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-18 13:59:26 +00:00
all: fix outdated ethereum wiki json-rpc json-rpc doc links (#32209)
Replace outdated wiki reference with ethereum.org documentation links
This commit is contained in:
parent
1a5f399e30
commit
5bce990891
2 changed files with 3 additions and 3 deletions
|
|
@ -1549,7 +1549,7 @@ func (api *TransactionAPI) SendRawTransaction(ctx context.Context, input hexutil
|
||||||
//
|
//
|
||||||
// The account associated with addr must be unlocked.
|
// The account associated with addr must be unlocked.
|
||||||
//
|
//
|
||||||
// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign
|
// https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign
|
||||||
func (api *TransactionAPI) Sign(addr common.Address, data hexutil.Bytes) (hexutil.Bytes, error) {
|
func (api *TransactionAPI) Sign(addr common.Address, data hexutil.Bytes) (hexutil.Bytes, error) {
|
||||||
// Look up the wallet containing the requested signer
|
// Look up the wallet containing the requested signer
|
||||||
account := accounts.Account{Address: addr}
|
account := accounts.Account{Address: addr}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ type revertError struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrorCode returns the JSON error code for a revert.
|
// ErrorCode returns the JSON error code for a revert.
|
||||||
// See: https://github.com/ethereum/wiki/wiki/JSON-RPC-Error-Codes-Improvement-Proposal
|
// See: https://ethereum.org/en/developers/docs/apis/json-rpc/#error-codes
|
||||||
func (e *revertError) ErrorCode() int {
|
func (e *revertError) ErrorCode() int {
|
||||||
return 3
|
return 3
|
||||||
}
|
}
|
||||||
|
|
@ -71,7 +71,7 @@ func (e *TxIndexingError) Error() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrorCode returns the JSON error code for a revert.
|
// ErrorCode returns the JSON error code for a revert.
|
||||||
// See: https://github.com/ethereum/wiki/wiki/JSON-RPC-Error-Codes-Improvement-Proposal
|
// See: https://ethereum.org/en/developers/docs/apis/json-rpc/#error-codes
|
||||||
func (e *TxIndexingError) ErrorCode() int {
|
func (e *TxIndexingError) ErrorCode() int {
|
||||||
return -32000 // to be decided
|
return -32000 // to be decided
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue