After multiple failed attempts with tezos.contract.at(addr).methods.entrypoint(args).send(amount)
, see Revealed public keys but failed to transfer on GRANADANET, I turned to the API tezbridge.request
. But still I cannot come over the problem to inject operations in the blockchain. It kept displaying a warning "forge operation failed" in the tezbridge window.
Did anyone happen to encounter similar issues? Or who knows any platform can let me do some test to debug it with code snippets? Many thanks.
const bet = async (stake_amount,bool_bet) => {
tezbridge.request({
method: 'inject_operations',
operations: [
{
kind: 'transaction',
//tried inserting other parameters like storage_limit, gas_limit, fee, etc.
amount: stake_amount,
destination: KT1xxxx,
parameters: {
entrypoint: "bet",
value: bool_bet //have modified it with many different variations
}
}
]
})
}