If I assign a bytes32 variable such as
bytes32 x = 0xffff;
but then I want to change the last byte (or any byte really) so that x is now 0xffaa, is there any possible way to do this? I want the change to be persistent so that any changes in x are reflected in the blockchain, not just mask into a particular byte and use the result.
changeX()in your example. How might that be done? – jojeyh Nov 02 '17 at 11:39