I have created a contract with functions...the get() is used for storing and getarray is for returning values...
struct arrayy{
uint256[] arrayvalue;
}
mapping(address => arrayy) arraymapping;
event logg(
uint256 z,
address sender
);
function get(uint256 y, address _owner) internal{
arraymapping[_owner].arrayvalue.push(y);
emit logg(y,_owner);
}
function getarray(address _owner) internal returns(uint256[]){
return(arraymapping[_owner].arrayvalue);
}
Then I deployed the contract, and tried to call the get() function by using...
DeployedContractAddress.call(bytes4(keccak256("get(uint256,address)")),1234,0xfffff);
The value is stored because, When I tried to call the getarray() function the value is returned...
But the emit() is not working...
Why this emit() is not working? Help me to resolve this issue? Help will be appreciated...