@verified-network/verified-sdk 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,12 +22,11 @@ class AccountContract extends index_1.VerifiedContract {
|
|
|
22
22
|
* @param (address _account, bytes32 _accountNumber, int256 _txAmount, bytes32 _txType, bytes32 _txDate, bytes32 _txDescription, bytes32 _vchType)
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
|
-
async postEntry(_counterParty,
|
|
25
|
+
async postEntry(_counterParty, _txAmount, _txType, _txDate, _txDescription, _vchType, options) {
|
|
26
26
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _counterParty);
|
|
27
|
-
await this.validateInput(index_1.DATATYPES.STRING, _accountNumber);
|
|
28
27
|
await this.validateInput(index_1.DATATYPES.NUMBER, _txAmount);
|
|
29
28
|
await this.validateInput(index_1.DATATYPES.NUMBER, _txDate);
|
|
30
|
-
return this.callContract(FUNCTIONS.POSTENTRY, _counterParty,
|
|
29
|
+
return this.callContract(FUNCTIONS.POSTENTRY, _counterParty, _txAmount, this.sanitiseInput(index_1.DATATYPES.BYTE32, _txType), _txDate, this.sanitiseInput(index_1.DATATYPES.BYTE32, _txDescription), this.sanitiseInput(index_1.DATATYPES.BYTE32, _vchType), options);
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
32
|
* View account transaction [callable by KYC passed client
|