go-nitro icon indicating copy to clipboard operation
go-nitro copied to clipboard

Zero address should be a constant

Open kerzhner opened this issue 3 years ago • 1 comments

Zero address represent ETH in the state channels network. Extract this address to a constant.

Originally posted by @geoknee in https://github.com/statechannels/go-nitro/pull/763#discussion_r911141384

kerzhner avatar Jun 30 '22 15:06 kerzhner

Following up:

It's not obvious if the same issue still exists in the code base. One approach could be to just ctrl+f common.Address{} and see if there are still any instances where it's used as the native-asset indicating address.

NiloCK avatar Jul 14 '23 13:07 NiloCK