trustwallet / developer

Trust Developer documentation: developer.trustwallet.com
https://developer.trustwallet.com
MIT License
317 stars 181 forks source link

Cannot sign an Ethereum transaction due to EthereumSigningInput/ WalletCore.TW_Ethereum_Proto_SigningInput #219

Closed StanislavSava closed 2 years ago

StanislavSava commented 2 years ago

Describe the bug It looks like EthereumSigningInput does not have the property "amount" exposed and cannot be properly instantiated.

To Reproduce Steps to reproduce the behavior:

Try to instantiate EthereumSigningInput with the amount property:

     let input = EthereumSigningInput.with {
                $0.amount = amountData!
            }

Expected behavior One should be able to pass in the amount, just like in the docs: https://developer.trustwallet.com/wallet-core/integration-guide/wallet-core-usage#ethereum-transaction-signing

Screenshots

Screenshot 2022-02-07 at 18 07 30

Additional context Using WalletCore 2.7.1 installed via the package manager for XCode

Screenshot 2022-02-07 at 18 07 49
hewigovens commented 2 years ago

Thanks for the report, the document is a bit updated, will update it soon