When attempting to invoke an endpoint through the js-moi-sdk, an error stating "One or more required arguments are missing" is encountered despite all required arguments being provided.
Contract
endpoint invoke persistent addProof(
moiID Address,
IDtype []String,
country String,
status String,
time U256,
cid String,
verifier []Bytes
):
mutate verificationProofs <- verfieye.verificationProofs:
if verificationProofs[moiID]?:
throw "Given moiID already has a proof exist"
memory proof = (proofDetails) <- createProof(moiID: moiID, IDtype: IDtype, country: country, status: status, time: time, cid: cid, verifier: verifier)
memory local_proof Map[Address]Proof
local_proof[moiID] = proof
disperse verificationProofs <- local_proof
Description
Contract
TS code
Manifest
verifeye.json
Expected Output: Should get the result and hash.
Actual Output: