opcodes: add json extension to fix Webpack JSON loader
This commit is contained in:
parent
7203b7a94d
commit
ac8ae8f0ed
5 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
var opcodes = require('./opcodes')
|
||||
var opcodes = require('./opcodes.json')
|
||||
|
||||
// https://github.com/feross/buffer/blob/master/index.js#L1127
|
||||
function verifuint (value, max) {
|
||||
|
|
|
@ -11,6 +11,6 @@ module.exports = {
|
|||
crypto: require('./crypto'),
|
||||
message: require('./message'),
|
||||
networks: require('./networks'),
|
||||
opcodes: require('./opcodes'),
|
||||
opcodes: require('./opcodes.json'),
|
||||
script: require('./script')
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ var bufferutils = require('./bufferutils')
|
|||
var typeforce = require('typeforce')
|
||||
var types = require('./types')
|
||||
|
||||
var OPS = require('./opcodes')
|
||||
var OPS = require('./opcodes.json')
|
||||
var REVERSE_OPS = (function () {
|
||||
var result = {}
|
||||
for (var op in OPS) {
|
||||
|
|
|
@ -2,7 +2,7 @@ var bcrypto = require('./crypto')
|
|||
var bscript = require('./script')
|
||||
var bufferutils = require('./bufferutils')
|
||||
var bufferReverse = require('buffer-reverse')
|
||||
var opcodes = require('./opcodes')
|
||||
var opcodes = require('./opcodes.json')
|
||||
var typeforce = require('typeforce')
|
||||
var types = require('./types')
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ var bscript = require('./script')
|
|||
var bufferEquals = require('buffer-equals')
|
||||
var bufferReverse = require('buffer-reverse')
|
||||
var networks = require('./networks')
|
||||
var ops = require('./opcodes')
|
||||
var ops = require('./opcodes.json')
|
||||
var typeforce = require('typeforce')
|
||||
var types = require('./types')
|
||||
|
||||
|
|
Loading…
Reference in a new issue