n1c01a5
  • Member for 5 years, 2 months
  • Last seen this week
How does MetaMask inject Web3?
3 votes

The Chrome plugin Metamask inject a global variable web3 in your browser. You can see it in your console browser, you have this message MetaMask - injected web3 and you can see the web3 object by ...

View answer
ecrecover() always returns 0x0000000000000000000000000000000000000000
2 votes

According to the documentation, it’s web3.eth.sign(data, address). I think you inversed the parameters. See https://web3js.readthedocs.io/en/1.0/web3-eth.html#sign. Also, do you send the good hash in ...

View answer
Deposit event is not call while contract get token
1 votes

You listen the event from the latest block so if your event is not in the latest one you don’t have any event. Try with fromBlock: 6039496 for example.

View answer
Assert.equals() weird behavior does not recognize (apparently) equal strings
Accepted answer
1 votes

The issue with your code is the 000000000000000000000000000000000000000000000000000000 in 0x416c696365000000000000000000000000000000000000000000000000000000 are also decoded with the character \u0000. ...

View answer
How Do You Parse Web3 Retuned JSON Objects of Events?
Accepted answer
1 votes

Try with this events.returnValues['0']. Or did you try something like this: let myArr = [] tokenContract.events.AddressList({ fromBlock: 6020474, toBlock: 'latest' }, (error, ...

View answer
How to deploy Library contract separate from the main contract and link it
1 votes

I deployed the library as contract (and also change the function to public) and linked the “contract-library” like this SafeMath safeMath = SafeMath(0xF2fD4E3A5b94f0B4D8EE74C009E12F698906420b);. Here ...

View answer
The constructor should be payable if you send value. The transaction has been reverted to the initial state
1 votes

I have this error when I called the function setup when another account than the owner. For info we can only call this function with the owner (creator of the contract).

View answer
Cannot install remix-ide locally
1 votes

I think it’s a node-gyp package issue. Here are some commands to try to install this package. If you use windows try : npm install --global --production windows-build-tools node-gyp configure --...

View answer
Can't send my ETH from Nano S
1 votes

Switch to ADVANCED MODE at the bottom left of your ledger wallet Ethereum and change the GAS LIMIT.

View answer
Ledger Nano S ethereum question
1 votes

Switch to ADVANCED MODE at the bottom left of your ledger wallet Ethereum and change the GAS PRICE.

View answer
Accidentally sent USDT to USDT contract address instead of wallet
Accepted answer
0 votes

Sorry whether on Tron or Ethereum it's the same you send your crypto to USDT contract and as no private key is attached to a smart contract it will not be possible for you to recover your funds (...

View answer
Are events only useful for loggin purposes?
Accepted answer
0 votes

Events do not notify in the sense of sending an email or sms notification but they are a bit like logs contained in the blockchain. The advantage is that they are not very expensive in terms of gas as ...

View answer
How can i `ecrecover` in solidity to verify the digest produced by `web3.utils.soliditySha3` in JS side?
0 votes

You don’t need to use solidity for that you can use directly web3 like: web3.eth.accounts.recover(hash, v, r, s); (to get the signer address). See https://web3js.readthedocs.io/en/v1.2.0/web3-eth-...

View answer
do users should be aware of smart contract of the dApp they are using?
0 votes

Yes interacting with the contract in a naive way can expose you to risks as if you have signed transactions that are not intended. To avoid this it is good to pay attention to the information given by ...

View answer
Mapping not updating after function is called
0 votes

Just add an event like contract yourContract { event RestrictedFromDividendEvent( uint RestrictedFromDividend ); mapping(address => uint) public _RestrictedFromDividend; // did you put ...

View answer
Can my eth adress be found through ens domain?
Accepted answer
0 votes

Yes it will always be possible to associate the ENS with your address because everything on the blockchain is in read-only. It's very likely that with a little audit we'll find your address. No Yes

View answer
Printing Paper wallet for my Ether in Ledger Nano S
0 votes

You can use your mnemonic seed for MyEtherWallet. Check Mnemonic Phrase and enter your mnemonic seed of your Ledger Wallet.

View answer