I'm trying to transfer an ERC20 token from account A to account B. Account A deployed the contract and owns all tokens.
Looks like I'm missing something very obvious.
Every time I try to transfer tokens from one account to another, I get a error. Here is an example of erroneous transaction.
Addresses in question:
I'm doing the following (the code is in Ruby, but should be self-explanatory):
require 'ethereum' value = 14 account_a_address = "0xd8e05701eFf33acfDA0A8e24C04070347703c72C" account_b_address = "0x3A70Ceac36c8111a95b573d76aD75B7ba898662b" contract_address = "0x1caf5380b7adc2e4e93c2828f895693ff38c3947" Ethereum::Singleton.setup do |c| c.default_account = account_a_address end Ethereum::Contract.create( file: "/Users/gmile/projects/ico-scripts/contracts/02-14-2018-1518620826/contract_text.sol", address: contract_address ) contract = EugeneToken.new tx = contract.transact.transfer(account_b_address, value * 1_000_000_00) puts tx.id
For some reason the transaction is qualified as
Contract Creation. Why?
I double-checked with the documentation for
ethereum.rb Ruby gem. The readme states that I can use the contract from blockchain by specifying an address of the contract deployed, as well a path to
.sol file as parameters to