Chainlink request uses all gas regardless of limit and fails

Contract pragma solidity ^0.6.0; import “@chainlink/contracts/src/v0.6/ChainlinkClient.sol”; contract PriceRetriever is ChainlinkClient { uint256 oraclePayment; uint256 public currentPrice; event PriceEvent( uint indexed price ); constructor(uint256 _oraclePayment) public { setPublicChainlinkToken(); oraclePayment = _oraclePayment; } function requestCoinMarketCapPrice ( address _oracle, bytes32 _jobId, string memory _coin, string memory _market ) public { Chainlink.Request memory req = buildChainlinkRequest(_jobId, address(this), this.fulfill.selector); req.add(“sym”,…

Chainlink TX uses all available gas and revokes

Contract pragma solidity ^0.6.0; import “@chainlink/contracts/src/v0.6/ChainlinkClient.sol”; contract PriceRetriever is ChainlinkClient { uint256 oraclePayment; uint256 public currentPrice; event PriceEvent( uint indexed price ); constructor(uint256 _oraclePayment) public { setPublicChainlinkToken(); oraclePayment = _oraclePayment; } function requestCoinMarketCapPrice ( address _oracle, bytes32 _jobId, string memory _coin, string memory _market ) public { Chainlink.Request memory req = buildChainlinkRequest(_jobId, address(this), this.fulfill.selector); req.add(“sym”,…

Contract not getting deployed and no failed transaction is shown on rinkeby.etherscan.io

I deployed this same contract a week ago and it deployed successfully. Now when I try to deploy it I get a message in the console telling me ‘Attempting to deploy contract from (my account)’ but then the terminal stops and returns to normal status without logging anymore messages. const web3 = new Web3(provider); const…

Cross Origin Blocked? Setting up Infura provider

useEffect(() => { const loadWeb3 = async () => { const web3 = new Web3( new Web3.providers.HttpProvider(“https://mainnet.infura.io/censored”) ); let n = await web3.eth.getBlockNumber(); setBN(n); }; loadWeb3(); }, []); here’s is the snippet from my react app… console says Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://mainnet.infura.io/censored (Reason: CORS header…

Segwit with Multisig

I was analyzing a Bitcoin transaction that works both with Segwit and non-Segwit for multisig Scripts. Here is the transaction: https://www.blockchain.com/en/btc/tx/80975cddebaa93aa21a6477c0d050685d6820fa1068a2731db0f39b535cbd369 Note that on indexes 0, 1 and 2 we have the unlocking script in the scriptsig filed and on index 3 it is using witness program. No problems until now. What is bugging me…

Information Regarding LASER and Ethereum

I was reading this article https://diligence.consensys.net/files/D1T2%20-%20Bernhard%20Mueller%20-%20Smashing%20Ethereum%20Smart%20Contracts%20for%20Fun%20and%20ACTUAL%20Profit.pdf and came across a line on page 10 Using LASER, we can represent smart contract execution as a space of states and path formulas in propositional logic. Obviously, this in itself is a mind-blowing achievement, but how is it useful for security analysis? I would like to know what…