Closed zone117x closed 4 years ago
Several byte enums/constants were represented as hex strings. These are more typically used as numbers.
For example, constructing a spending condition given an address hash mode byte:
address hash mode
Previous code:
const hashMode = 0x01; const hashModeStr = hashMode.toString(16).padStart(2, '0'); return new SingleSigSpendingCondition(hashModeStr, ...);
New code:
const hashMode = 0x01; return new SingleSigSpendingCondition(hashMode, ...);
npm run test
Description
Several byte enums/constants were represented as hex strings. These are more typically used as numbers.
For example, constructing a spending condition given an
address hash mode
byte:Previous code:
New code:
Type of Change
Checklist
npm run test
passes