Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: 0731f2ddc979708df658492bd947addaa79e114c
      
https://github.com/btcsuite/btcd/commit/0731f2ddc979708df658492bd947addaa79e114c
  Author: Dave Collins <da...@conformal.com>
  Date:   2016-10-21 (Fri, 21 Oct 2016)

  Changed paths:
    M txscript/standard.go
    M txscript/standard_test.go

  Log Message:
  -----------
  txscript: Cleanup and improve NullDataScript tests.

This modifies the recently-added NullDataScript function in several
ways in an effort to make them more consistent with the tests in the
rest of the code base and improve/correct the logic:

- Use the hexToBytes and mustParseShortForm functions
- Consistently format the test errors
- Replace the valid bool flag with an expected error and test against it
- Ensure the returned script type is the expected type in all cases


Reply via email to