Hot answers tagged

1

I have created and compiled a contract according to the one that you've posted in a comment. I have deployed it to Ropsten, and then verified it on Etherscan. As you can see on Etherscan, its byte-code contains the sequence 704f1b94, which is the function-selector of function registerUser(string). And as you can see on Etherscan, the byte-code of your ...


1

It seems you are using your contract from the backend. In that case you cannot use MetaMask because it runs in the browser. You have these options: Execute the transactions that make changes from the frontend. The UI has to connect to MetaMask and use it as provider for @truffle/contract. Use your own wallet in the backend and configure truffle to use it ...


1

You can do something like this: const fs = require("fs"); const Web3 = require("web3"); const NODE_ADDRESS = process.argv[2]; const PRIVATE_KEY = process.argv[3]; const CONTRACT_NAME = process.argv[4]; const ARTIFACTS_DIR = __dirname + "<path to your bin/abi folder relative to this script>"; const MIN_GAS_LIMIT = 100000; // increase this if ...


1

I am able to connect to your contract. Try this. I got your abi from etherscan. const express = require('express') const Web3 = require('web3') const web3 = new Web3(new Web3.providers.HttpProvider('https://ropsten.infura.io/')); const abi = [{"constant":false,"inputs":[{"name":"CopyMatch","type":"address"}],"name":"proxy_ActiveStrategy","outputs":[{"name":"...


Only top voted, non community-wiki answers of a minimum length are eligible