Unable to add Oracle
PatrickAlphaC opened this issue · comments
Following the README verbatim to deploy an oracle, I run into the following.
On adding an oracle:
yarn solink add-oracle \
--index 0 \
--feedAddress 8ox6rTwuVEeKRgkVTr1tdzyjpGNLAt2W6NT63zubcWiM \
--oracleName solink-test \
--oracleOwner Ea36cguU9E1p6FBYfikzhMTfG4ekY7WDK8HwUBvV2P3A
I get:
add oracle...
Transaction simulation failed: Error processing Instruction 1: invalid account data for instruction
Program 11111111111111111111111111111111 invoke [1]
Program 11111111111111111111111111111111 success
Program 3wEiZwdEygZisYbaDCe3bMztMVBbo3rK4X3bHs52Xc5F invoke [1]
Program log: Instruction: AddOracle
Program log: Error: InvalidAccountData
Program 3wEiZwdEygZisYbaDCe3bMztMVBbo3rK4X3bHs52Xc5F consumed 12260 of 200000 compute units
Program 3wEiZwdEygZisYbaDCe3bMztMVBbo3rK4X3bHs52Xc5F failed: invalid account data for instruction
(node:43280) UnhandledPromiseRejectionWarning: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 1: invalid account data for instruction
at Connection._callee53$ (/Users/patrick/code/solana-chainlink/solana-flux-aggregator/node_modules/solray/node_modules/@solana/web3.js/src/connection.js:2957:13)
at tryCatch (/Users/patrick/code/solana-chainlink/solana-flux-aggregator/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/Users/patrick/code/solana-chainlink/solana-flux-aggregator/node_modules/regenerator-runtime/runtime.js:293:22)
at Generator.next (/Users/patrick/code/solana-chainlink/solana-flux-aggregator/node_modules/regenerator-runtime/runtime.js:118:21)
at asyncGeneratorStep (/Users/patrick/code/solana-chainlink/solana-flux-aggregator/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/Users/patrick/code/solana-chainlink/solana-flux-aggregator/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:43280) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:43280) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
✨ Done in 7.99s.
OS: MacOS BigSur
Node: 12.20.0, 14.15.2
npm: 6.14.9
rustup: 1.23.1
solana-cli: 1.5.2