Resetting a storage array?

How am I supposed to reset an array with previous values to just an empty array? Can’t figure it out for the life of me. Using solidity version 4.26, tried… tokenContract[tokenAddress].someArray = new uint256[]; tokenContract[tokenAddress].someArray = []; tokenContract[tokenAddress].someArray = uint256[]; It’s a mapping with an address attached and then linked to an array but I…

What is input in web3.eth.abi.decodeLog(inputs, hexString, topics);

web3.eth.abi.decodeLog([{ type: ‘string’, name: ‘myString’ } , { type: ‘uint256’, name: ‘myNumber’, indexed: true },{ type: ‘uint8’, name: ‘mySmallNumber’, indexed: true }], ‘0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000748656c6c6f252100000000000000000000000000000000000000000000000000’, [‘0x000000000000000000000000000000000000000000000000000000000000f310’, ‘0x0000000000000000000000000000000000000000000000000000000000000010’]); Result { ‘0’: ‘Hello%!’, ‘1’: ‘62224’, ‘2’: ’16’, myString: ‘Hello%!’, myNumber: ‘62224’, mySmallNumber: ’16’ } this is decodelog example in “https://web3js.readthedocs.io/en/v1.2.0/web3-eth-abi.html#decodelog” but i don’t know how to find “inputs” parameters.…

Why does this transaction fail?

I try to approve from a contract but the transaction keeps failing and i get this output right here: Uncaught (in promise) Error: Transaction ran out of gas. Please provide more gas: { “blockHash”: “0xbd3ef1db5338f07c68b02450818b8897b6184cc175ae1ef8daf5c26b0ee660fc”, “blockNumber”: 7302053, “contractAddress”: null, “cumulativeGasUsed”: 248816, “from”: “0x62f28320f688a7a4e0021c55d7ffd1acd770a133”, “gasUsed”: 22124, “logsBloom”: “0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000”, “status”: false, “to”: “0x20fe562d797a42dcb3399062ae9546cd06f63280”, “transactionHash”: “0x970ddab36f343753383bec1496ea26e2ccd9365c12b637b62366025dce5a0206”, “transactionIndex”: 10,…