smartcontractkit / near-protocol-contracts

MIT License
26 stars 8 forks source link

fulfill_request returning bool #20

Open mikedotexe opened 4 years ago

mikedotexe commented 4 years ago

The fulfill_request should return bool, catch any errors that happen in the callback function and return false if they do. NEAR has asynchronous cross-contract calls, effectively Promises which should return some Ok() result, or an Error. Check for that error and return false if it exists.

Node operators should get paid in any case.