Boilertalk / Web3.swift

A pure swift Ethereum Web3 library
MIT License
636 stars 187 forks source link

Add getCreate2Address function #134

Closed Florian-S-A-W closed 1 year ago

Florian-S-A-W commented 1 year ago

Add the getCreate2Address function as a member of a EthereumUtils file in Toolbox. This function returns the contract address that would result from the given CREATE2 call.

codecov-commenter commented 1 year ago

Codecov Report

Merging #134 (1e91fc2) into master (a5d5222) will increase coverage by 3.52%. The diff coverage is 90.90%.

@@            Coverage Diff             @@
##           master     #134      +/-   ##
==========================================
+ Coverage   70.86%   74.39%   +3.52%     
==========================================
  Files          63       64       +1     
  Lines        4438     4460      +22     
==========================================
+ Hits         3145     3318     +173     
+ Misses       1293     1142     -151     
Impacted Files Coverage Δ
Sources/Core/Toolbox/EthereumUtils.swift 90.90% <90.90%> (ø)
Sources/Core/Web3/Web3.swift 69.92% <0.00%> (+0.36%) :arrow_up:
Sources/ContractABI/ABI/ABIConvertible.swift 99.54% <0.00%> (+0.45%) :arrow_up:
Sources/Core/Toolbox/String+HexBytes.swift 92.95% <0.00%> (+1.40%) :arrow_up:
Sources/ContractABI/ABI/ABIEncoder.swift 92.00% <0.00%> (+2.00%) :arrow_up:
Sources/Core/Transaction/EthereumAddress.swift 93.84% <0.00%> (+2.30%) :arrow_up:
Sources/ContractABI/Contract/Eth+Contract.swift 64.28% <0.00%> (+3.57%) :arrow_up:
Sources/Core/Transaction/EthereumTransaction.swift 71.39% <0.00%> (+3.78%) :arrow_up:
Sources/Core/RLP/RLPItem.swift 66.66% <0.00%> (+3.96%) :arrow_up:
Sources/Core/Providers/Web3Provider.swift 52.23% <0.00%> (+4.47%) :arrow_up:
... and 16 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.