Skip to content

Commit

Permalink
fixed erc721 and updated pods
Browse files Browse the repository at this point in the history
  • Loading branch information
TonioMacaronio committed Oct 17, 2018
1 parent 568ec5d commit bf7538d
Show file tree
Hide file tree
Showing 36 changed files with 46 additions and 46 deletions.
8 changes: 4 additions & 4 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ PODS:
- Result (4.0.0)
- scrypt (2.0):
- CryptoSwift (~> 0.11)
- secp256k1_swift (1.0.2)
- secp256k1_swift (1.0.3)
- SipHash (1.2.2)
- SwiftRLP (1.0.1):
- BigInt (~> 3.1)
Expand All @@ -25,7 +25,7 @@ DEPENDENCIES:
- PromiseKit (~> 6.4.1)
- Result (~> 4.0)
- scrypt (~> 2.0)
- secp256k1_swift (~> 1.0.2)
- secp256k1_swift (~> 1.0.3)
- SwiftRLP (~> 1.0.1)

SPEC REPOS:
Expand All @@ -45,10 +45,10 @@ SPEC CHECKSUMS:
PromiseKit: 4c76a6506638034e3d7bede97b2ff7743f7bd2dc
Result: 7645bb3f50c2ce726dd0ff2fa7b6f42bbe6c3713
scrypt: 3fe5b1a3b0976f97cd87488673a8f7c65708cc84
secp256k1_swift: 1e6ac4ee77fbef7f97f87e096a918a1248b8c4f6
secp256k1_swift: 4fc5c4b2d2c6d21ee8ccb868cdc92da12f38bed9
SipHash: fad90a4683e420c52ef28063063dbbce248ea6d4
SwiftRLP: 9de2c9512a9a6bf0909cd84cc143a7ff1aff7820

PODFILE CHECKSUM: bce98dcdfceae57faa2cd3bcb3d595f16beaad0b
PODFILE CHECKSUM: c1d9470cb065e1f6c00709092108f522105e869f

COCOAPODS: 1.6.0.beta.1
2 changes: 1 addition & 1 deletion Pods/Headers/Public/BigInt/BigInt-iOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/BigInt/BigInt-iOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/BigInt/BigInt-macOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/BigInt/BigInt-macOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/CryptoSwift/CryptoSwift-iOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/CryptoSwift/CryptoSwift-iOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/PromiseKit/PromiseKit-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/PromiseKit/PromiseKit.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/Result/Result-iOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/Result/Result-iOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/Result/Result-macOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/Result/Result-macOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/SipHash/SipHash-iOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/SipHash/SipHash-iOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/SipHash/SipHash-macOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/SipHash/SipHash-macOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/SwiftRLP/SwiftRLP-iOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/SwiftRLP/SwiftRLP-iOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/SwiftRLP/SwiftRLP-macOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/SwiftRLP/SwiftRLP-macOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/scrypt/scrypt-iOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/scrypt/scrypt-iOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/scrypt/scrypt-macOS-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Headers/Public/scrypt/scrypt-macOS.modulemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Pods/secp256k1_swift/Classes/secp256k1.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions web3swift/PrecompiledContracts/ERC721/Web3+ERC721.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class ERC721 {

func getOwner(tokenId: BigUInt) -> Result<EthereumAddress, Web3Error> {
let contract = self.contract
let result = contract.method("ownerOf", parameters: [account] as [tokenId], extraData: Data(), options: self.options)!.call(options: nil, onBlock: "latest")
let result = contract.method("ownerOf", parameters: [tokenId] as [AnyObject], extraData: Data(), options: self.options)!.call(options: nil, onBlock: "latest")
switch result {
case .success(let returned):
guard let res = returned["0"] as? EthereumAddress else {return Result.failure(Web3Error.processingError(desc: "Failed to get result of expected type from the Ethereum node"))}
Expand All @@ -141,7 +141,7 @@ class ERC721 {

func getApproved(tokenId: BigUInt) -> Result<EthereumAddress, Web3Error> {
let contract = self.contract
let result = contract.method("getApproved", parameters: [account] as [tokenId], extraData: Data(), options: self.options)!.call(options: nil, onBlock: "latest")
let result = contract.method("getApproved", parameters: [tokenId] as [AnyObject], extraData: Data(), options: self.options)!.call(options: nil, onBlock: "latest")
switch result {
case .success(let returned):
guard let res = returned["0"] as? EthereumAddress else {return Result.failure(Web3Error.processingError(desc: "Failed to get result of expected type from the Ethereum node"))}
Expand All @@ -153,7 +153,7 @@ class ERC721 {

func tokenByIndex(index: BigUInt) -> Result<BigUInt, Web3Error> {
let contract = self.contract
let result = contract.method("tokenByIndex", parameters: [account] as [index], extraData: Data(), options: self.options)!.call(options: nil, onBlock: "latest")
let result = contract.method("tokenByIndex", parameters: [index] as [AnyObject], extraData: Data(), options: self.options)!.call(options: nil, onBlock: "latest")
switch result {
case .success(let returned):
guard let res = returned["0"] as? BigUInt else {return Result.failure(Web3Error.processingError(desc: "Failed to get result of expected type from the Ethereum node"))}
Expand All @@ -165,7 +165,7 @@ class ERC721 {

func tokenOfOwnerByIndex(owner: EthereumAddress, index: BigUInt) -> Result<BigUInt, Web3Error> {
let contract = self.contract
let result = contract.method("tokenOfOwnerByIndex", parameters: [account] as [owner, index], extraData: Data(), options: self.options)!.call(options: nil, onBlock: "latest")
let result = contract.method("tokenOfOwnerByIndex", parameters: [owner, index] as [AnyObject], extraData: Data(), options: self.options)!.call(options: nil, onBlock: "latest")
switch result {
case .success(let returned):
guard let res = returned["0"] as? BigUInt else {return Result.failure(Web3Error.processingError(desc: "Failed to get result of expected type from the Ethereum node"))}
Expand Down

0 comments on commit bf7538d

Please sign in to comment.