I cloned this repo: solana-movie-program and deployed it on Solana Playground.
I also cloned solana-movie-client and tried it but I get the error: "Transaction simulation failed: Error processing Instruction 0: insufficient account keys for instruction"
Also here are the logs:
[
'Program AJBhcFoWMtxWpmtkjfftKpiBBxXnVKo7y4jFVpAfmfQQ invoke [1]',
'Program log: process_instruction: AJBhcFoWMtxWpmtkjfftKpiBBxXnVKo7y4jFVpAfmfQQ: 3 accounts, data=[0, 27, 0, 0, 0, 66, 114, 97, 118, 101, 104, 101, 97, 114, 116, 57, 48, 54, 56, 57, 54, 46, 54, 53, 55, 48, 52, 49, 48, 54, 57, 53, 5, 13, 0, 0, 0, 65, 32, 103, 114, 101, 97, 116, 32, 109, 111, 118, 105, 101]',
'Program log: Adding movie review...',
'Program log: Title: Braveheart906896.6570410695',
'Program log: Rating: 5',
'Program log: Description: A great movie',
'Program AJBhcFoWMtxWpmtkjfftKpiBBxXnVKo7y4jFVpAfmfQQ consumed 27607 of 200000 compute units',
'Program AJBhcFoWMtxWpmtkjfftKpiBBxXnVKo7y4jFVpAfmfQQ failed: insufficient account keys for instruction'
]
}
Does anyone know how to fix it? Thanks!