0

I get the unknown account error when executing smart contract on the main network. it works well on the local network. On the main network on the other hand when i send funds to the smart contract it goes well but when i call the smart contract i get the "unknown account" error. Anyone have any ideas why i get that? Thank you

3
  • 1
    How are you calling the contract, can you show your code?
    – Jaime
    Commented Jun 17, 2018 at 13:30
  • Possible duplicate of Unknown account error- smart contract
    – Jesbus
    Commented Jun 18, 2018 at 10:52
  • function confirm_transaction (address buyer, string trxId) public onlyOwner returns (bool) { if(trx_status[buyer][trxId] == false) { seller_address = trx_seller[buyer][trxId]; amount_transaction = trx_amount[buyer][trxId]; seller_address.transfer(amount_transaction); trx_status[buyer][trxId] = true; emit LogConfirmTransaction(buyer, trxId); }
    – john3me
    Commented Jun 18, 2018 at 10:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.