(t testing.TB)
| 66 | } |
| 67 | |
| 68 | func newAsset(t testing.TB) *testAsset { |
| 69 | dest := newDest(t) |
| 70 | cp, _ := dest.controlProgram() |
| 71 | var initialBlockID bc.Hash |
| 72 | assetID := bc.ComputeAssetID(cp, &initialBlockID, 1, &bc.EmptyStringHash) |
| 73 | |
| 74 | return &testAsset{ |
| 75 | AssetID: assetID, |
| 76 | testDest: *dest, |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | func issue(t testing.TB, asset *testAsset, dest *testDest, amount uint64) (*legacy.Tx, *testAsset, *testDest) { |
| 81 | if asset == nil { |
no test coverage detected