3

I am confused of this.

when I write

uint256 internal ownerPrivateKey = 0xB0b;

Is this conversion implicit? how are we assigning bytes to a uint256 variable?

1 Answer 1

2

You can assign smaller integers to larger ones.

A byte is uint8. Not semantically, but from the bits points of view.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.