mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 01:25:10 +00:00
abstore smart contract - Fixed Aval and Bval validation (#436)
Signed-off-by: Michał Mirończuk <michalmironczuk1@gmail.com>
This commit is contained in:
parent
3acff50554
commit
c5e190680f
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ var ABstore = class {
|
||||||
let Aval = args[1];
|
let Aval = args[1];
|
||||||
let Bval = args[3];
|
let Bval = args[3];
|
||||||
|
|
||||||
if (typeof parseInt(Aval) !== 'number' || typeof parseInt(Bval) !== 'number') {
|
if (isNaN(parseInt(Aval)) || isNaN(parseInt(Bval))) {
|
||||||
return shim.error('Expecting integer value for asset holding');
|
return shim.error('Expecting integer value for asset holding');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue