We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b78567 commit d05a569Copy full SHA for d05a569
Sources/web3swift/Web3/Web3+Utils.swift
@@ -26,7 +26,7 @@ extension Web3.Utils {
26
27
/// Calculate address of deployed contract deterministically based on the address of the deploying Ethereum address
28
/// and the nonce of this address
29
- public static func calcualteContractAddress(from: EthereumAddress, nonce: BigUInt) -> EthereumAddress? {
+ public static func calculateContractAddress(from: EthereumAddress, nonce: BigUInt) -> EthereumAddress? {
30
guard let normalizedAddress = from.addressData.setLengthLeft(32) else {return nil}
31
guard let data = RLP.encode([normalizedAddress, nonce] as [AnyObject]) else {return nil}
32
guard let contractAddressData = Web3.Utils.sha3(data)?[12..<32] else {return nil}
0 commit comments