Skip to content

Commit cc250d4

Browse files
Fixed typo in function name
Was `calcualte...` instead of `calculate...`
1 parent a3b2acf commit cc250d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/Web3/Web3+Utils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extension Web3.Utils {
2626

2727
/// Calculate address of deployed contract deterministically based on the address of the deploying Ethereum address
2828
/// and the nonce of this address
29-
public static func calcualteContractAddress(from: EthereumAddress, nonce: BigUInt) -> EthereumAddress? {
29+
public static func calculateContractAddress(from: EthereumAddress, nonce: BigUInt) -> EthereumAddress? {
3030
guard let normalizedAddress = from.addressData.setLengthLeft(32) else {return nil}
3131
guard let data = RLP.encode([normalizedAddress, nonce] as [AnyObject]) else {return nil}
3232
guard let contractAddressData = Web3.Utils.sha3(data)?[12..<32] else {return nil}

0 commit comments

Comments
 (0)