{"_id":"@appliedblockchain/parity-revert-reason","_rev":"132-1631b332b162c02bbebb55037cdf9622","name":"@appliedblockchain/parity-revert-reason","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@appliedblockchain/parity-revert-reason","version":"1.0.0","keywords":["parity","solidity","revert","reason"],"author":{"name":"Shariff Inayat","email":"shariff@appliedblockchain.com"},"license":"UNLICENSED","_id":"@appliedblockchain/parity-revert-reason@1.0.0","maintainers":[{"name":"dpbricher","email":"dpbricher@gmail.com"},{"name":"alaanzr","email":"alaan@appliedblockchain.com"},{"name":"benlees1","email":"ben@appliedblockchain.com"},{"name":"arnaudab","email":"arnaud@appliedblockchain.com"},{"name":"pedro-dcc","email":"pedroc@appliedblockchain.com"},{"name":"tiagogomes","email":"tiago@appliedblockchain.com"},{"name":"tahseenm","email":"thas_01@live.com"},{"name":"shariffy","email":"shariff.inayat@gmail.com"},{"name":"seektheerror","email":"seektheerror@gmail.com"},{"name":"sawbeanraz","email":"srdx7@hotmail.com"},{"name":"mirek","email":"mirek@me.com"},{"name":"mariogemoll","email":"mariogemoll@gmx.net"},{"name":"makevoid","email":"makevoid@gmail.com"},{"name":"jorgemmsilva","email":"jorge@appliedblockchain.com"},{"name":"jbbatista-abc","email":"joao@appliedblockchain.com"},{"name":"dsbrgg","email":"diego@appliedblockchain.com"},{"name":"andycampbell92","email":"andycampbell92@gmail.com"},{"name":"alord","email":"andrew.lord@appliedblockchain.com"},{"name":"alexis-l8","email":"alexis@appliedblockchain.com"},{"name":"ab-ci","email":"developers@appliedblockchain.com"}],"homepage":"https://github.com/appliedblockchain/parity-revert-reason#readme","bugs":{"url":"https://github.com/appliedblockchain/parity-revert-reason/issues"},"dist":{"shasum":"c43daef483a7a8ef6b1255079534d4c1ab02d0e3","tarball":"https://registry.npmjs.org/@appliedblockchain/parity-revert-reason/-/parity-revert-reason-1.0.0.tgz","fileCount":3,"integrity":"sha512-VUY9SU9UwWHyNuLr5U3f3aqvq3pmgCvG0/Jh33SYnO37ZRlrpS19gDVWDeodrlC2tEh80d1n3Y4a+w+cq2FOtg==","signatures":[{"sig":"MEUCIQDkZqeMGgimlVnyro6zl+pOEXSKVLkZkHmqBL1Lt3w5+AIgBfZr+V84tV6jvmfuu1wbbJsBL+y4c9J43phirudx+7Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3DB1CRA9TVsSAnZWagAARvwP/AjPb0QBbiWkM6EFwRwB\nZCCXanFXzVyccVgzqYMAw08al3QBA7qHuv8fJ7gsEX53qUdt2PQUaDc/BVFD\nlMvSJ+UlInCE4wB174h2WxlMG4WDj+ISRDONpDacDQ75Kzyh0m04mmE0FDXV\nUbF0u/tM4jqXsa5qYIYbf6DmU6iBDDDwAnfLC7Pqt3Ak7GStZyf4AjNJ+uwP\nCeX+q9EPe233pxbp8Mnw7G+RmjMgtJBuV0bNpykrhIewrCFSmGa4Cnmfikb4\n9q7ktOe4gk379UiIwX0/qjRuiharBzUZRIer/ec/ckUkqcX6ckQrGNVm687Z\nc6rn+Xlo32Ns2QJ1WlK+mX+HGdzN3Ndj00Bnx57p66XxwxUNnWFRpjHKoxbL\n3w/sFU16ba63vD8xeZSx+U+S5n6EdizxHlDjC+NZRHq6NkS32o8VZQcw2r5e\niJYxww1wKK9Y5uOViFv64GnjFvq2nOsWUjdGWSKLrO4A3epJQLnw7L3e/XoE\nLFGDZaNWL3x410HqnyefiSwH53EnD2axYcZmUad49Omp5AdwIZ7sRI3nMpIV\nGzgMR/+La8WVxC1MXydD1P/jtfNDzP+9mdhxC/BDYqlBOHzmycgjaL2Vs80d\ngj7cfVGBIczVp86L+OJ3z5ZkeoWZ08tD2qUNI5XcVQynjxfJj7MENYoJv3qN\ntTTg\r\n=id4D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"59b0f513d56170db1157046b3fcf8548cda92bb6","scripts":{"lint":"eslint .","test":"truffle test --network parity-solo"},"_npmUser":{"name":"shariffy","email":"shariff.inayat@gmail.com"},"repository":{"url":"git+https://github.com/appliedblockchain/parity-revert-reason.git","type":"git"},"_npmVersion":"6.4.1","description":"Small function and tests for retrieving Solidity revert reason from require()","directories":{},"_nodeVersion":"10.15.3","eslintConfig":{"env":{"node":true,"mocha":true},"extends":"@appliedblockchain","globals":{"web3":true,"assert":true}},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^5.16.0","truffle":"^5.0.17","@appliedblockchain/eslint-config":"^2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/parity-revert-reason_1.0.0_1557934196961_0.30252513629122646","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@appliedblockchain/parity-revert-reason","version":"1.0.1","keywords":["parity","solidity","revert","reason"],"author":{"name":"Shariff Inayat","email":"shariff@appliedblockchain.com"},"license":"UNLICENSED","_id":"@appliedblockchain/parity-revert-reason@1.0.1","maintainers":[{"name":"ab-ci","email":"developers@appliedblockchain.com"},{"name":"alaanzr","email":"alaan@appliedblockchain.com"},{"name":"alexis-l8","email":"alexis@appliedblockchain.com"},{"name":"alord","email":"andrew.lord@appliedblockchain.com"},{"name":"andycampbell92","email":"andycampbell92@gmail.com"},{"name":"arnaudab","email":"arnaud@appliedblockchain.com"},{"name":"benlees1","email":"ben@appliedblockchain.com"},{"name":"dpbricher","email":"dpbricher@gmail.com"},{"name":"dsbrgg","email":"diego@appliedblockchain.com"},{"name":"jbbatista-abc","email":"joao@appliedblockchain.com"},{"name":"jorgemmsilva","email":"jorge@appliedblockchain.com"},{"name":"makevoid","email":"makevoid@gmail.com"},{"name":"mariogemoll","email":"mariogemoll@gmx.net"},{"name":"mirek","email":"mirek@me.com"},{"name":"pedro-dcc","email":"pedroc@appliedblockchain.com"},{"name":"sawbeanraz","email":"srdx7@hotmail.com"},{"name":"seektheerror","email":"seektheerror@gmail.com"},{"name":"shariffy","email":"shariff.inayat@gmail.com"},{"name":"tahseenm","email":"thas_01@live.com"},{"name":"tiagogomes","email":"tiago@appliedblockchain.com"}],"homepage":"https://github.com/appliedblockchain/parity-revert-reason#readme","bugs":{"url":"https://github.com/appliedblockchain/parity-revert-reason/issues"},"dist":{"shasum":"9039fd6677d073099deb07414ef928dedb51455e","tarball":"https://registry.npmjs.org/@appliedblockchain/parity-revert-reason/-/parity-revert-reason-1.0.1.tgz","fileCount":3,"integrity":"sha512-SiydUXeIJ7soL27q7monhDU1CcIZ0xyRV1KXHiWQka7UjOhCjJw2x/Rj4WxTJWDFNNpwSbvsJtqZ7cNbX7F1ag==","signatures":[{"sig":"MEUCIGR4ZPf27eJZoSD/aHk2p4H/1/R3c/lNR9QO5p73eZk7AiEAhBG0KNOLjXSF10xKyy8/BcySEHCFqe9cb/kCwMbdF38=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3EWuCRA9TVsSAnZWagAA5HUQAIobxiw6YczEEHpSqoa4\nSwelfl1X9KoKWvmW1L2hmNKr8+diRTxk96TvMHE4vMJ68K7itDOggtEhNTyn\nBYZqB3Ep+q2bSYNLua3klaYxws7tHa+rHmgkhiPKX9byumJb6R3ZSTFr28wk\n3mneOmOQ5PnOtpOBwaLYSDoM6mqHqgXove6vJ+o34sx5hnw2xnL8G7qW6RNY\niI2PW04XOs1evO9oAKPn3NVI5FbHK+SlcPg4BBETVxSyq50Dt9dzJMwv63Sq\nWquaWjRKs2rrOAkWZ2xaVXs+w+q8Wpa/W4oBqxrAO6a0yk0cAXLmQN3enoqZ\naeul9FHjP7qAoKs8blpVJbhnqxMDUJnlCpS20YUF94SkSuU/Ww2CIDvYbLnI\ni74B1HH2qt5JK8ico4jjjNAgLIKEH7kiC8AiI/4bY2Bj003S6GVCEMRkqzay\nbYH+gAWS6gFa1NdmfBYbrQVdhw5WYLGbOKmIfltrRPWPAgIFCAwuCAx+fx2x\nuVKlM/2nV7M9BRPKwp4m39IHmn9l9oXjmdf+N1ErCXEj+0pFkXlU1Ksco8of\nXk1iia17tW5W4DFYCZ1eaPli7I5nvqi/BzqeHm3ZKxuZ3PEdIU7igEzM72J+\nFKREQqiwmwTNxLDaF9nlO1wGfM8N1Pf8PscsNocK54+qdsiU3V/Tb0cxQsXG\notVa\r\n=mHb2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"70dd49d6fec5d6910d0d286acb4c9e6589e72238","scripts":{"lint":"eslint .","test":"truffle test --network parity-solo"},"_npmUser":{"name":"shariffy","email":"shariff.inayat@gmail.com"},"repository":{"url":"git+https://github.com/appliedblockchain/parity-revert-reason.git","type":"git"},"_npmVersion":"6.4.1","description":"Small function and tests for retrieving Solidity revert reason from require()","directories":{},"_nodeVersion":"10.15.3","eslintConfig":{"env":{"node":true,"mocha":true},"extends":"@appliedblockchain","globals":{"web3":true,"assert":true}},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^5.16.0","truffle":"^5.0.17","@appliedblockchain/eslint-config":"^2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/parity-revert-reason_1.0.1_1557939629681_0.3249403292664932","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@appliedblockchain/parity-revert-reason","version":"1.0.2","keywords":["parity","solidity","revert","reason"],"author":{"name":"Shariff Inayat","email":"shariff@appliedblockchain.com"},"license":"UNLICENSED","_id":"@appliedblockchain/parity-revert-reason@1.0.2","maintainers":[{"name":"ab-ci","email":"developers@appliedblockchain.com"},{"name":"alaanzr","email":"alaan@appliedblockchain.com"},{"name":"alexis-l8","email":"alexis@appliedblockchain.com"},{"name":"alord","email":"andrew.lord@appliedblockchain.com"},{"name":"andycampbell92","email":"andycampbell92@gmail.com"},{"name":"arnaudab","email":"arnaud@appliedblockchain.com"},{"name":"benlees1","email":"ben@appliedblockchain.com"},{"name":"dpbricher","email":"dpbricher@gmail.com"},{"name":"dsbrgg","email":"diego@appliedblockchain.com"},{"name":"jbbatista-abc","email":"joao@appliedblockchain.com"},{"name":"jorgemmsilva","email":"jorge@appliedblockchain.com"},{"name":"makevoid","email":"makevoid@gmail.com"},{"name":"mariogemoll","email":"mariogemoll@gmx.net"},{"name":"mirek","email":"mirek@me.com"},{"name":"pedro-dcc","email":"pedroc@appliedblockchain.com"},{"name":"sawbeanraz","email":"srdx7@hotmail.com"},{"name":"seektheerror","email":"seektheerror@gmail.com"},{"name":"shariffy","email":"shariff.inayat@gmail.com"},{"name":"tahseenm","email":"thas_01@live.com"},{"name":"tiagogomes","email":"tiago@appliedblockchain.com"}],"homepage":"https://github.com/appliedblockchain/parity-revert-reason#readme","bugs":{"url":"https://github.com/appliedblockchain/parity-revert-reason/issues"},"dist":{"shasum":"0c7aad2cd1e088a05dd70460fb6d9f7bb4129dc4","tarball":"https://registry.npmjs.org/@appliedblockchain/parity-revert-reason/-/parity-revert-reason-1.0.2.tgz","fileCount":3,"integrity":"sha512-HiGsu8aaYb9hE6vBA91gXNWzs/0hm2fyz6ze/Ih4MsCpZ9ijcrKvwOXz1H1gVtKm89S8TtS2rG6ek8UVOtJVlw==","signatures":[{"sig":"MEUCIQDyEuG0Jxur4UY3jV/QZL6oVosy+rZztxo9wZnjU6PJ4QIgWl/uxovQVY9igo3Y2/mDyR/zK59EYx1R/pq0kIo8J0c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5126,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3SU7CRA9TVsSAnZWagAA87wP/1HAhR3KJ8bYkQPew6E7\nCABM465sCPLrT7Bq9zPpFgGA7sB870+0B3JhJztcsPguEYz4s2ue4e7l1SH7\nw9PKkKC+WxXRwA1rjcRkLIJlpY2+l56moRMRRZnVX2akE+5YzbLfM5ehydiF\nVj4kd4UdkPdffugfAxJxWmMLHQqsUc5Sb/OSDJOiabS+FMzBKLxATK+tdU9B\nzvtTZTC/wNFTf/4gRRPTWisVntd35Wj7eood19XYvWe2JlkcvBGSo5+f3JTw\ngnrEaTlyhnL6irqxInFWk7Ezce2JVsbfdaUL4J2bQSihhCkh0F/SvAisBOKZ\nAwfkKDBoJd5Y/yEOKMOmCcB5UOWiy+hIIAwcWEiEv0PRMzEsNynDNu+xCl56\nJNx4I+hp9QbliVLHaga+bhZdaFNCVoS8WODyxwpw4SULuwJY1J2bohkQi2SN\noooz2YKs5uHUvClCyI+H/L3MLg4bXbokq9dLQUr2WcK1+rPNH3z0Fkvko8Ae\n/6BDji3567Ex1iBO2V9TIin/SwtCxRzhgs/4rfKOKUtdDTdugCcwMXUv+XUL\nYTwpL6xCCBBPeVWngQ1b0oIM6XTk+9gSKyjoslaFJrRwZSW6kvIRkLICx0FJ\n1nMXdbOryU3I/i6+0w7hdK1nizAdYWnm3ypDpt3hd4+C8qgdHv2iIxa5j1t0\nodty\r\n=suSb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"9ebdf057c6492eea6b70d1f8ed81e8f4aeb533a4","scripts":{"lint":"eslint .","test":"truffle test --network parity-solo"},"_npmUser":{"name":"shariffy","email":"shariff.inayat@gmail.com"},"repository":{"url":"git+https://github.com/appliedblockchain/parity-revert-reason.git","type":"git"},"_npmVersion":"6.4.1","description":"Small function and tests for retrieving Solidity revert reason from require()","directories":{},"_nodeVersion":"10.15.3","eslintConfig":{"env":{"node":true,"mocha":true},"extends":"@appliedblockchain","globals":{"web3":true,"assert":true}},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^5.16.0","truffle":"^5.0.17","@appliedblockchain/eslint-config":"^2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/parity-revert-reason_1.0.2_1557996858829_0.7565241043287556","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@appliedblockchain/parity-revert-reason","version":"1.0.3","keywords":["parity","solidity","revert","reason"],"author":{"name":"Shariff Inayat","email":"shariff@appliedblockchain.com"},"license":"LGPL-3.0","_id":"@appliedblockchain/parity-revert-reason@1.0.3","maintainers":[{"name":"ab-ci","email":"developers@appliedblockchain.com"},{"name":"alord","email":"andrew.lord@appliedblockchain.com"},{"name":"andycampbell92","email":"andycampbell92@gmail.com"},{"name":"arnaudab","email":"arnaud@appliedblockchain.com"},{"name":"benlees1","email":"ben@appliedblockchain.com"},{"name":"jbbatista-abc","email":"joao@appliedblockchain.com"},{"name":"joaoguedes87","email":"joaogusmaoguedes@gmail.com"},{"name":"makevoid","email":"makevoid@gmail.com"},{"name":"mariogemoll","email":"mariogemoll@gmx.net"},{"name":"mirek","email":"mirek@me.com"},{"name":"seektheerror","email":"seektheerror@gmail.com"},{"name":"shariffy","email":"shariff.inayat@gmail.com"},{"name":"tahseenm","email":"thas_01@live.com"}],"homepage":"https://github.com/appliedblockchain/parity-revert-reason#readme","bugs":{"url":"https://github.com/appliedblockchain/parity-revert-reason/issues"},"dist":{"shasum":"8e705b6e4942dba7a124b4e5cc21e053bc355605","tarball":"https://registry.npmjs.org/@appliedblockchain/parity-revert-reason/-/parity-revert-reason-1.0.3.tgz","fileCount":4,"integrity":"sha512-M9mmHoWr8Q9h3e7Z1UiOjl7/e9owHd/+nhLf7N5u1iewTC+yi0ijry73m15fRfFEpP/qWSyzDqPPpYoezp0LRA==","signatures":[{"sig":"MEYCIQDiPJDrGqbpbJOyctbNkvq1OXQ2gNKOSdC0KiQHQcswZQIhAOf29mZIsy0v6I/6P/t5d7qo4uWrsld29LiKbPLVAHvH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12776,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbjiOCRA9TVsSAnZWagAAfo0QAIirHcIcygX6JXUmCNR5\nqsll5F+0Fn59xHVNinvJht209tcxO9m+BAHAT2xpfn6rnCt5+ZD/mqugIqQ/\n8PiFlUN7kRKaOEEiuq0RaQwY0YJ1rCiOj+GWYFxZO08xO18DWeGC8d3LujR1\nHdqlRgX2R3DTuSZ3JI2KcGa9dntDCkrhPEUuhTl0dXjTOc1r0mh7iVxVz9Ot\nOtNtGjgUzPjko2iIZlDv8zkT97ToCMFeGfwJgqSQNm16w3S1iX72MChDCAZP\ndnBoGLrrsBrOtuEDVA/b1VHfHow8Q+jj6VfDc5qbuO92WOK478qilvy4ydUi\nVzpkCYtQ/TTCjQbePDKAY3EWTYk1j19X46cvr2EFRmV0I0e0PHnkpEQHlDOS\nzDwZXREFtjw1LcF1ASM9FKXf26QEW/DOkTxzfo1mOTcpQHHnX83w+AWlfkgS\n768ZeSY8eV+XEplk66YIngHMgJNsI/i+Zu9yLs0zxufLguI39pyZ0KUKfS7c\n3OMngu8cydHCBRNu45P8Dmhnx1iNZ/42xW7QF44c3UtXpBmmbjqpa4gnGznm\n8X04LqeF5E7K70ouPnnEkjMGQAtUV+ry/zZFXEMFzIx+fH1o8B9NoN+X40af\nUYoL3QY04GpJhmSEFderRzOAcdSe58mjUfgggcbN6yQlfXVzdzGP5FYfqjoG\nDhpO\r\n=Pxct\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"b8b2cf85d5b5f55e389bb55e7677d1061e261622","scripts":{"lint":"eslint .","test":"truffle test --network parity-solo"},"_npmUser":{"name":"shariffy","email":"shariff.inayat@gmail.com"},"repository":{"url":"git+https://github.com/appliedblockchain/parity-revert-reason.git","type":"git"},"_npmVersion":"6.4.1","description":"Small function and tests for retrieving Solidity revert reason from require()","directories":{},"_nodeVersion":"10.15.3","eslintConfig":{"env":{"node":true,"mocha":true},"extends":"@appliedblockchain","globals":{"web3":true,"assert":true}},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^5.16.0","truffle":"^5.0.17","@appliedblockchain/eslint-config":"^2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/parity-revert-reason_1.0.3_1567504525447_0.4421096508657141","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-05-15T15:29:56.961Z","modified":"2026-08-28T12:49:31.133Z","1.0.0":"2019-05-15T15:29:57.115Z","1.0.1":"2019-05-15T17:00:29.835Z","1.0.2":"2019-05-16T08:54:18.935Z","1.0.3":"2019-09-03T09:55:25.578Z"},"bugs":{"url":"https://github.com/appliedblockchain/parity-revert-reason/issues"},"author":{"name":"Shariff Inayat","email":"shariff@appliedblockchain.com"},"license":"LGPL-3.0","homepage":"https://github.com/appliedblockchain/parity-revert-reason#readme","keywords":["parity","solidity","revert","reason"],"repository":{"url":"git+https://github.com/appliedblockchain/parity-revert-reason.git","type":"git"},"description":"Small function and tests for retrieving Solidity revert reason from require()","maintainers":[{"email":"palhais.diogo@gmail.com","name":"diogopalhais"},{"email":"developers@appliedblockchain.com","name":"ab-ci"},{"email":"andycampbell92@gmail.com","name":"andycampbell92"},{"email":"mirek@me.com","name":"mirek"},{"email":"danielmelo@appliedblockchain.com","name":"danchmelo"},{"email":"sereno.rui@gmail.com","name":"ruisereno"},{"email":"ricardo.seromenho@gmail.com","name":"seromenho"},{"email":"ricardo.rocha.pinheiro@gmail.com","name":"kennypt"},{"email":"filipe.pedro@appliedblockchain.com","name":"filipepedro"},{"email":"mario.nikolaus@gmail.com","name":"mnikolaus"},{"email":"nilson@appliedblockchain.com","name":"bertola"},{"email":"joao.luis.achada.lima@gmail.com","name":"lslima91"},{"email":"junior_erico@hotmail.com","name":"juniorerico"},{"email":"alisson@appliedblockchain.com","name":"alisson-diniz-ab"},{"email":"arash.kafaeilotfie@gmail.com","name":"losceicco"},{"email":"gabriels@hey.com","name":"gabspeck"},{"email":"zeljko.tadic.91@gmail.com","name":"ztadic91"},{"email":"ioannis.martakis@appliedblockchain.com","name":"kjack83"},{"email":"andre.faria@appliedblockchain.com","name":"andremfaria"},{"email":"tiagorvmartins@gmail.com","name":"tiagorvmartins"},{"email":"samuelfcmc@gmail.com","name":"samfcmc"},{"email":"bruno.neves@appliedblockchain.com","name":"brunoneves-devops"},{"email":"ewan.sims@appliedblockchain.com","name":"ewan-sims-applied-blockchain"},{"email":"geoffrey.chalk@appliedblockchain.com","name":"geoffreychalk"},{"email":"greg@appliedblockchain.com","name":"grzegorzjucha"},{"email":"tudor@appliedblockchain.com","name":"tudorab"}],"readme":"# Get EVM revert reason on Parity\n\n(if stated, as in `require(false, \"Message\")`)\n\n`web3.js` has a Debug module and [`debug.getTransactionTrace`](https://web3js.readthedocs.io/en/1.0/web3-eth-debug.html?highlight=trace#gettransactiontrace)\nbut this will call a JSON-RPC API only implemented in Geth, not Parity.\nFor Parity, one has to call `trace_rawTransaction`.\n\nFor more info: https://github.com/paritytech/parity-ethereum/issues/9887.\n\nIt should probably use [RLP.decode()](https://github.com/ethereumjs/rlp) but can't get it to work.\n\n## Usage\n\n```javascript\nconst { throwWithRevertReason } = require('@appliedblockchain/parity-revert-reason')\n\nconst method = 'myMethod'\nconst args = []\nconst contract = new web3.eth.Contract(abi, address)\nconst txParams = {...}\nconst tx = await web3.eth.signTransaction(txParams)\nawait web3.eth.sendSignedTransaction(tx.raw).catch(async () => {\n  const fallbackErrMsg = `Transaction ${method}(${inspect(args)}) (nonce: ${txParams.nonce}) failed.`\n  await throwWithRevertReason(web3, tx.raw)\n})\n```\n\n### throwWithRevertReason(web3, rawTxHash\\[, fallbackMsg])\n\nParams:\n\n- `web3` Web3 instance (only tested with v1.0.0-beta.37)\n- `rawTxHash` Either `tx.raw` if using `web3.eth.signTransaction` or `tx.rawTransaction` if using `web3.eth.accounts.signTransaction`\n- `fallbackMsg` Error message to be thrown if the trace yielded no parseable content.\n\nReturns:\n\n- `Promise<Error>` Rejected Promise with either the transaction Revert message or the `fallbackMsg`.\n\n## Run the tests\n\n`docker run --rm -d -p 8545:8545 appliedblockchain/parity-solo:v4.0.0`\n\n`npm test`\n","readmeFilename":"README.md"}