2

I got this error.

Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: sum of account balances before and after instruction do not match

1 Answer 1

4

Problem solved✔️

In my case I had a function that had two shipments of balances. One through the system program with transfer and another through try_borrow_mut_lamports()?.

First you have to put the transfer function and then the try_borrow_mut_lamports() function

1
  • thank God for you Commented Jun 6 at 1:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.