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

InValid Account Error #76

Closed
pandeyshivang opened this issue Apr 23, 2018 · 1 comment
Closed

InValid Account Error #76

pandeyshivang opened this issue Apr 23, 2018 · 1 comment

Comments

@pandeyshivang
Copy link

pandeyshivang commented Apr 23, 2018

@shamatar Send ether with Bip32Keystore..
let toAddress = EthereumAddress("0x9b74194598b3958f4d297a88d2cf08d6ac9e94f2")
var options = Web3Options.defaultOptions()
options = Web3Options.defaultOptions()
options.gasLimit = BigUInt(21000)
options.from = bip32keystore?.addresses?.first!
options.value = BigUInt(1000000000000000)

    let intermediateSend = web3Rinkeby?.contract(Web3.Utils.coldWalletABI, at: toAddress, abiVersion: 2)!.method(options: options)!
    let sendResultBip32 = intermediateSend?.send(password: "1234")
    switch sendResultBip32 {
    case .success(let r)?:
        print(r)
    case .failure(let err)?:
        print(err)
    case .none:
        print("Something went wrong",sendResultBip32)
  }
@pandeyshivang
Copy link
Author

Thankx @shamatar Fixed in 0.5.6 version....

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

1 participant