Skip to content

Commit 9841898

Browse files
committed
Fix createAssetTransferInput()
1 parent 868b071 commit 9841898

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,9 +664,9 @@ function checkParameters(parameters: Buffer[]) {
664664
);
665665
}
666666
parameters.forEach((p, index) => {
667-
if (p instanceof Buffer) {
667+
if (!(p instanceof Buffer)) {
668668
throw Error(
669-
`Expedted an item of parameters to be an instance of Buffer but found ${p} at index ${index}`
669+
`Expected an item of parameters to be a Buffer instance but found ${p} at index ${index}`
670670
);
671671
}
672672
});

0 commit comments

Comments
 (0)