Hi,
I have a payable function in my contract.
function payInvoice(uint _invoiceIndex) payable external {
Invoice storage inv = invoices[_invoiceIndex];
inv.paid = true;
payable(inv.seller).transfer(toWithdraw);
}
——
I’m calling it from a .js in HardHat, local network:
await pylastra.payInvoice(1, { value: 9000000 });
The balances of the accounts don’t change, however. Is it because I need a signer to send the transaction? How to do so? (When debugging I saw a JsonRpcSigner ).
Dec 17, 2021, 2:09 PM