You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(Consensus): Add function to get consensus version. (#413)
* feat(Consensus): Add function to get conmsensus version. Get vm/abi based on node protocol
* chore(node): Remove logs
* add docs for node getProtocol
* disable channel tests
* try to fix channel test
* try to fix channel test
* Make sdk compatible with node from 2.3.0 to 4.0.0
* feat(TxBuilder): INT type must be greater or equal 0 int transaction
[TX_TYPE.contractCreate]: {vmVersion: [VM_VERSIONS.SOPHIA_IMPROVEMENTS_MINERVA,VM_VERSIONS.SOPHIA_IMPROVEMENTS_FORTUNA],abiVersion: [ABI_VERSIONS.SOPHIA]},// vmVersion 0x4 do not work with fortuna
[FIELD_TYPES.int]: ({ value})=>VALIDATION_ERROR(`${value} is not of type Number or BigNumber`),
309
+
[FIELD_TYPES.int]: ({ value, isMinusValue })=>isMinusValue ? VALIDATION_ERROR(`${value} must be >= 0`) :VALIDATION_ERROR(`${value} is not of type Number or BigNumber`),
295
310
[FIELD_TYPES.id]: ({ value, prefix })=>VALIDATION_ERROR(`'${value}' prefix doesn't match expected prefix '${prefix}' or ID_TAG for prefix not found`),
296
311
[FIELD_TYPES.binary]: ({ prefix, value })=>VALIDATION_ERROR(`'${value}' prefix doesn't match expected prefix '${prefix}'`),
297
312
[FIELD_TYPES.string]: ({ value })=>VALIDATION_ERROR(`Not a string`),
if(supported.vmVersion.length&&!R.contains(ctVersion.vmVersion,supported.vmVersion))thrownewError(`VM VERSION ${ctVersion.vmVersion} do not support by this node. Supported: [${supported.vmVersion}]`)
359
-
if(!R.contains(ctVersion.abiVersion,supported.abiVersion))thrownewError(`ABI VERSION ${ctVersion.abiVersion} do not support by this node. Supported: [${supported.abiVersion}]`)
359
+
if(protocolForTX.vmVersion.length&&!R.contains(ctVersion.vmVersion,protocolForTX.vmVersion))thrownewError(`VM VERSION ${ctVersion.vmVersion} do not support by this node. Supported: [${protocolForTX.vmVersion}]`)
360
+
if(!R.contains(ctVersion.abiVersion,protocolForTX.abiVersion))thrownewError(`ABI VERSION ${ctVersion.abiVersion} do not support by this node. Supported: [${protocolForTX.abiVersion}]`)
0 commit comments