Write an optional 'contractHash' from an 'assetIssuance' to the 'dst' frame, advancing the cursor 257 cells. * * Precondition: '*dst' is a valid write frame for 257 more cells; * NULL != issuance; */
| 99 | * NULL != issuance; |
| 100 | */ |
| 101 | static void newIssuanceContract(frameItem* dst, const assetIssuance* issuance) { |
| 102 | if (writeBit(dst, NEW_ISSUANCE == issuance->type)) { |
| 103 | writeHash(dst, &issuance->contractHash); |
| 104 | } else { |
| 105 | skipBits(dst, 256); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | /* Write an optional 'entropy' from an 'assetIssuance' to the 'dst' frame, advancing the cursor 257 cells. |
| 110 | * |
no test coverage detected