File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1773,7 +1773,7 @@ PlutusScript:
1773
1773
hash(language_version: number): ScriptHash {
1774
1774
let bytes = new Uint8Array(this.bytes().length + 1);
1775
1775
bytes[0] = language_version;
1776
- bytes.set(bytes, 1);
1776
+ bytes.set(this. bytes() , 1);
1777
1777
let hash_bytes = cdlCrypto.blake2b224(bytes);
1778
1778
return new ScriptHash(hash_bytes);
1779
1779
}
Original file line number Diff line number Diff line change @@ -10398,7 +10398,7 @@ export class PlutusScript {
10398
10398
hash ( language_version : number ) : ScriptHash {
10399
10399
let bytes = new Uint8Array ( this . bytes ( ) . length + 1 ) ;
10400
10400
bytes [ 0 ] = language_version ;
10401
- bytes . set ( bytes , 1 ) ;
10401
+ bytes . set ( this . bytes ( ) , 1 ) ;
10402
10402
let hash_bytes = cdlCrypto . blake2b224 ( bytes ) ;
10403
10403
return new ScriptHash ( hash_bytes ) ;
10404
10404
}
You can’t perform that action at this time.
0 commit comments