Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go/common/viewingkey/viewing_key_signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type (
// CheckSignature checks if signature is valid for provided encryptionToken and chainID and return address or nil if not valid
func (psc PersonalSignChecker) CheckSignature(encryptionToken []byte, signature []byte, chainID int64) (*gethcommon.Address, error) {
if len(signature) != 65 {
return nil, fmt.Errorf("invalid signaure length: %d", len(signature))
return nil, fmt.Errorf("invalid signature length: %d", len(signature))
}
// We transform the V from 27/28 to 0/1. This same change is made in Geth internals, for legacy reasons to be able
// to recover the address: https://github.com/ethereum/go-ethereum/blob/55599ee95d4151a2502465e0afc7c47bd1acba77/internal/ethapi/api.go#L452-L459
Expand Down Expand Up @@ -53,7 +53,7 @@ func (psc PersonalSignChecker) CheckSignature(encryptionToken []byte, signature

func (e EIP712Checker) CheckSignature(encryptionToken []byte, signature []byte, chainID int64) (*gethcommon.Address, error) {
if len(signature) != 65 {
return nil, fmt.Errorf("invalid signaure length: %d", len(signature))
return nil, fmt.Errorf("invalid signature length: %d", len(signature))
}

msg, err := GenerateMessage(encryptionToken, chainID, 1, EIP712Signature)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ abstract contract ERC4626 is ERC20, IERC4626 {
* @dev Internal conversion function (from assets to shares) with support for rounding direction.
*
* Will revert if assets > 0, totalSupply > 0 and totalAssets = 0. That corresponds to a case where any asset
* would represent an infinite amout of shares.
* would represent an infinite amount of shares.
*/
function _convertToShares(uint256 assets, Math.Rounding rounding) internal view virtual returns (uint256 shares) {
uint256 supply = totalSupply();
Expand Down
2 changes: 1 addition & 1 deletion lib/gethfork/node/rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Route struct {
Func func(resp http.ResponseWriter, req *http.Request)
}

// Server manages the lifeycle of an RPC Server
// Server manages the lifecycle of an RPC Server
type Server interface {
Start() error
Stop()
Expand Down