Error occurred when trying to send rpc requests(s)
when creating the filter. Am I missing something?
CreateFilterAsyn()
to CreateFilterInput(firstBlock, lastBlock)
and not get any error! But my log remains null now...var logs = auctionSuccesfulEvent.GetAllChanges<AuctionSuccessfulEvent>(filterAll);
one more question
I have error when i estimate gas, to contract function
Message = "Destination array was not long enough. Check the destination index, length, and the array's lower bounds.\r\nParameter name: destinationArray"
Function parameters - address _to, uint256 _amount, bytes32 _msgHash, bytes _signature,
What is wrong ?
var messageHash = Web3.Sha3(messageToSign);
@juanfranblanco
I create sign with Nethereum :
var messageToSign = "abc";
var messageHash = Web3.Sha3(messageToSign);
var signer = new MessageSigner();
var signedMessage = signer.Sign(messageHash.HexToByteArray(), userAccount.PrivateKey);
And based on https://hackernoon.com/a-closer-look-at-ethereum-signatures-5784c14abecc -
( In section : Let’s take a look at the exact functions used in Ethereum to do the signing)
If I adding the prefix - "\x19Ethereum Signed Message:\n32"; I gets error.
Do I need add this prefix to message?
Code from my contract :
// validate signature
bytes32 prefixedHash = ECRecovery.toEthSignedMessageHash(_msgHash);
address signer = ECRecovery.recover(prefixedHash, _signature);