Error: missing argument: passed to contract (count=1, expectedCount=2, code=MISSING_ARGUMENT, version=contracts/5.7.0) #2473
Answered
by
othaime-en
blaynejosh
asked this question in
Q&A
-
Hello, I'm trying to test a function in my simpleStorage contract which is supposed to addPerson to an array of people This is the code below: it("Should update when we call addPerson", async function () {
const expectedValue = "Jesulayomi"
const transactionResponse = await simpleStorage.addPerson(expectedValue)
await transactionResponse.wait(1)
const currentValue = await simpleStorage.retrieve()
assert.equal(currentValue.toString(), expectedValue)
})
}) Can anyone help? |
Beta Was this translation helpful? Give feedback.
Answered by
othaime-en
Sep 10, 2022
Replies: 1 comment 7 replies
-
Please share your |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
blaynejosh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please share your
simpleStorage
contract code.