Hello everyone
I am trying to unit test a smart contract. I am trying to send value to a payable function that requires it to execute.
So far, What I am doing is deploy oracle, and store it in a new variable to call its methods (As the default template goes)
const deployedPromise = deployer.deploy(MY_CONTRACT_PATH) // Deploy it
await assert.isFulfilled(deployedPromise, 'Could not deploy the My Smart Contract'); // Check whether it's deployed
instance = await Promise.resolve(deployedPromise)
console.log(instance)
Now later I want to use this instance
and call a method that requires aettos to execute.
I am aware that calling like that possible with SDK passing {amount: _amount}
but not sure how to do it here. Or should I use the SDK to fulfill the operation?
For example, I want to send aettos with this method.
instance.create_text(_text)