Skip to content

Commit

Permalink
Update packages/ckb/src/utils/rgbpp.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Flouse <[email protected]>
  • Loading branch information
duanyytop and Flouse authored Mar 7, 2024
1 parent ffc7a21 commit bc7886e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ckb/src/utils/rgbpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const genRgbppLockScript = (rgbppLockArgs: Hex, isMainnet?: boolean) => {
} as CKBComponents.Script;
};

// refer to https://github.com/ckb-cell/rgbpp/blob/0c090b039e8d026aad4336395b908af283a70ebf/contracts/rgbpp-lock/src/main.rs#L173-L211
export const calculateCommitment = (rgbppVirtualTx: RgbppL1TransferVirtualTx) => {
var hash = sha256.create();
hash.update(utf8ToHex('RGB++'));
Expand Down

0 comments on commit bc7886e

Please sign in to comment.