Sending Payments
Learn how to send payments in a smart contract.
Withdraw payments
Now, we’ll implement a function called withdraw
. When called, this function will initiate the transfer of funds to the recorded addresses according to the provided split ratio.
We can create a new describe
block called withdraw
inside the existing one. Using the describe
function allows us to categorize related tests together. We’ll include any withdrawal-related test inside this new block.
Get hands-on with 1400+ tech skills courses.