Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Function transfer is not constant: transfer, requires to sign transaction #19

Open
noydarly opened this issue Aug 6, 2018 · 0 comments

Comments

@noydarly
Copy link

noydarly commented Aug 6, 2018

Hi, everyone
I am going to send transfer using ruby.
this is my code.
web3 = Web3::Eth::Rpc.new host: 'ropsten.infura.io',
port: 443,
connect_options: {
open_timeout: 20,
read_timeout: 140,
use_ssl: true,
rpc_path: '/xxxxxxxxxx'
}
ERC_ABI = '[{.....}]'
contractAddr = "0xFf............"
contract = web3.eth.contract(ERC_ABI).at(contractAddr)
data = contract.transfer.getData('0xg.......', 10000, {from: '0xc........'})

but i get some error.
please help me.
Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant