我们已经在gcp上设置了链接节点,并遵循https://docs.chain.link/docs/fulfilling-requests/。作业未完成,currentprice属性始终返回0。
甲骨文:https://remix.ethereum.org/#url=https://docs.chain.link/samples/NodeOperators/Oracle.sol&optimize=false&runs=200&evmVersion=null&version=soljson-v0.6.6+commit.6c089d02.js消费者:https://remix.ethereum.org/#url=https://docs.chain.link/samples/APIRequests/ATestnetConsumer.sol&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.7+commit.e28d00a7.js
谢谢
发布于 2021-10-28 06:48:56
通常,当我们在节点上创建新作业时,它会将externalJobId分配给作业,如'07269a61-586c-4831-bc26-7d2b581fbd1c‘。但是当你在消费者契约中调用函数时,你必须在函数中提供这个没有破折号的externalJobId,所以它将类似于'07269a61586c4831bc267d2b581fbd1c‘。这在链式链接文档中并未以明显的方式提及
https://docs.chain.link/docs/fulfilling-requests/
https://stackoverflow.com/questions/69721319
复制相似问题