Closed mousehaohao closed 5 years ago
Hi @impul I think the sign should be right the code is the same as in essentiaone
let dataPk = self.essentiaWallet.privateKey.raw
ewLogger.debug("[ETH][TX] private key=\(dataPk.toHexString()), walletprivatekey=\(self.essentiaWallet.privateKey.get())")
let signer = EIP155Signer.init(chainId: 1)
guard let signedTxData = try? signer.sign(transaction, privateKey: dataPk) else {
ewLogger.error("[ETH][TX] sign error.")
return
}
self.ethBridgeWallet.sendTransaction(with: signedTxData.toHexString().addHexPrefix(), result: {
switch $0 {
case .success(let object):
ewLogger.error("[ETH][TX] send trans success, txid=\(object.txId)")
case .failure(let error):
ewLogger.error("[ETH][TX] send tx error, \(error)")
}
})
Ps: could you please unblock me from the telegram, seems can not send pm to you, my account is @ProcessAlgebra
the root cause is that I passed wrong private key. :(
Hi impul, need help again. when send transaction, the response is
but I think there is enough fund in my account. gas*price+value is less than the balance in my account.
or do you have telegram account? may I add your IM account?