You've already forked specification
63d3a0eba3
According to https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/replay-protected-sighash.md, the nSequence field should be 4-byte little endian.