Skip to content

Commit 204cf1e

Browse files
committed
fixed spelling errors
1 parent f17b13d commit 204cf1e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

web3/_utils/module_testing/go_ethereum_personal_module.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,10 @@ async def test_async_sign_and_ec_recover(self,
357357
unlockable_account_dual_type: ChecksumAddress,
358358
unlockable_account_pw: str) -> None:
359359
message = "This is a test"
360-
signiture = await async_w3.geth.personal.sign(message, # type: ignore
360+
signature = await async_w3.geth.personal.sign(message, # type: ignore
361361
unlockable_account_dual_type,
362362
unlockable_account_pw)
363-
address = await async_w3.geth.personal.ec_recover(message, signiture) # type: ignore
363+
address = await async_w3.geth.personal.ec_recover(message, signature) # type: ignore
364364
assert is_same_address(unlockable_account_dual_type, address)
365365

366366
@pytest.mark.asyncio
@@ -419,8 +419,8 @@ async def test_async_sign_typed_data(self,
419419
unlockable_account_dual_type: ChecksumAddress,
420420
unlockable_account_pw: str) -> None:
421421
message = {"message": "This is a test"}
422-
signiture = await async_w3.geth.personal.sign_typed_data(message, # type: ignore
422+
signature = await async_w3.geth.personal.sign_typed_data(message, # type: ignore
423423
unlockable_account_dual_type,
424424
unlockable_account_pw)
425-
address = await async_w3.geth.personal.ec_recover(message, signiture) # type: ignore
425+
address = await async_w3.geth.personal.ec_recover(message, signature) # type: ignore
426426
assert is_same_address(unlockable_account_dual_type, address)

web3/geth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ def unlock_account(self,
149149
duration: Optional[int] = None) -> bool:
150150
return self._unlock_account(account, passphrase, duration)
151151

152-
def ecRecover(self, message: str, signiture: HexStr) -> ChecksumAddress:
153-
return self._ecRecover(message, signiture)
152+
def ecRecover(self, message: str, signature: HexStr) -> ChecksumAddress:
153+
return self._ecRecover(message, signature)
154154

155155
def importRawKey(self, private_key: str, passphrase: str) -> ChecksumAddress:
156156
return self._importRawKey(private_key, passphrase)

0 commit comments

Comments
 (0)