Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Compile errors ... EthereumTransaction, EthereumAddress #29

Closed
rednaxus opened this issue Nov 14, 2018 · 3 comments
Closed

Compile errors ... EthereumTransaction, EthereumAddress #29

rednaxus opened this issue Nov 14, 2018 · 3 comments

Comments

@rednaxus
Copy link

Hi.... thanks for making this library...

In the example project, I get the following compile errors:

/TrustSDK-iOS/Sources/TrustSDK/Commands/SignTransactionCommand.swift:15:29: Use of undeclared type 'EthereumTransaction'
/TrustSDK-iOS/Sources/TrustSDK/Commands/SignTransactionCommand.swift:30:30: Use of undeclared type 'EthereumTransaction'
/TrustSDK-iOS/Sources/TrustSDK/Commands/SignTransactionCommand.swift:78:48: Use of undeclared type 'EthereumTransaction'
/TrustSDK-iOS/Sources/TrustSDK/ObjCWrapper/TrustSDKObjC.swift:27:27: Use of unresolved identifier 'EthereumTransaction'
/TrustSDK-iOS/Sources/TrustSDK/ObjCWrapper/TrustSDKObjC.swift:31:17: Use of unresolved identifier 'EthereumAddress'
/TrustSDK-iOS/Sources/TrustSDK/ObjCWrapper/TrustSDKObjC.swift:48:65: Use of unresolved identifier 'EthereumAddress'

@vikmeup
Copy link
Contributor

vikmeup commented Nov 14, 2018

I think you need to change from Address => EthereumAddress and Transaction => EthereumTransaction

@rednaxus
Copy link
Author

ok...i guess you mean EthereumAddress => Address, EthereumTransaction => Transaction...

Then i have to change the instantiation:
let transaction = Transaction(
//nonce: 0,
gasPrice: BigInt(gasPrice)!,
gasLimit: gasLimit,
to: Address(string: address)!
//amount: BigInt(amount)!,
//payload: .none
)

on line 27 of TrustSDKObjC

...and it compiles and runs, which is better...continuing to test

@deda9
Copy link

deda9 commented Nov 23, 2018

Just update the Podfile
change pod 'TrustSDK', path: '../' into pod 'TrustSDK'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants