You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to sign transaction exactly as in documentation:
func signTransaction() {
guard let amountString = amountTextField.text else { return }
guard let address = addressTextField.text else { return }
let amount = Int((Double(amountString) ?? 0.0) * ethDivident)
let signer = EIP155Signer(chainId: 1)
let rawTransaction1 = EthereumRawTransaction(
value: Wei("\(amount)") ?? 0,
to: "\(address)",
gasPrice: Int(gasPrice),
gasLimit: 21000,
nonce: 2
)
guard let signed = try? signer.hash(rawTransaction: rawTransaction1).toHexString() else { return }
print(signed)
}
It's printing transaction hash, but is not substracting any ethereum from the wallet. Also when I check the transaction on Etherium Scan is not showin at all.
The text was updated successfully, but these errors were encountered:
I tried to sign transaction exactly as in documentation:
It's printing transaction hash, but is not substracting any ethereum from the wallet. Also when I check the transaction on Etherium Scan is not showin at all.
The text was updated successfully, but these errors were encountered: