Tighten the assertion to hex string

This commit is contained in:
Fabio Berger
2019-05-20 13:41:57 +01:00
parent 3f037ef3cc
commit b6b96f0eee

View File

@@ -79,7 +79,7 @@ export class {{contractName}}Contract extends BaseContract {
txDefaults: Partial<TxData>,
{{> typed_params inputs=ctor.inputs}}
): Promise<{{contractName}}Contract> {
assert.isString('bytecode', bytecode);
assert.isHexString('bytecode', bytecode);
assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [
schemas.addressSchema,
schemas.numberSchema,