@ethereumjs/tx
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -9,2 +9,6 @@ # Changelog | ||
## 3.1.2 - 2021-03-31 | ||
- Fixed default value for empty access lists in the `AccessListEIP2930Transaction.fromValuesArray()` static constructor method, PR [#1179](https://github.com/ethereumjs/ethereumjs-monorepo/pull/1179) | ||
## 3.1.1 - 2021-03-23 | ||
@@ -11,0 +15,0 @@ |
@@ -35,2 +35,4 @@ "use strict"; | ||
var types_1 = require("./types"); | ||
var emptyAccessList = []; | ||
var emptyBuffer = Buffer.from([]); | ||
/** | ||
@@ -209,3 +211,2 @@ * Typed transaction with optional access lists | ||
var _a = __read(values, 11), chainId = _a[0], nonce = _a[1], gasPrice = _a[2], gasLimit = _a[3], to = _a[4], value = _a[5], data = _a[6], accessList = _a[7], v = _a[8], r = _a[9], s = _a[10]; | ||
var emptyBuffer = Buffer.from([]); | ||
return new AccessListEIP2930Transaction({ | ||
@@ -219,3 +220,3 @@ chainId: new ethereumjs_util_1.BN(chainId), | ||
data: data !== null && data !== void 0 ? data : emptyBuffer, | ||
accessList: accessList !== null && accessList !== void 0 ? accessList : emptyBuffer, | ||
accessList: accessList !== null && accessList !== void 0 ? accessList : emptyAccessList, | ||
v: v !== undefined ? new ethereumjs_util_1.BN(v) : undefined, | ||
@@ -222,0 +223,0 @@ r: r !== undefined && !r.equals(emptyBuffer) ? new ethereumjs_util_1.BN(r) : undefined, |
/// <reference types="node" /> | ||
/// <reference types="bn.js" /> | ||
import { BN, AddressLike, BNLike, BufferLike } from 'ethereumjs-util'; | ||
import { BN, AddressLike, BNLike, BufferLike, PrefixedHexString } from 'ethereumjs-util'; | ||
import Common from '@ethereumjs/common'; | ||
@@ -35,4 +35,4 @@ import { default as Transaction } from './legacyTransaction'; | ||
export declare type AccessListItem = { | ||
address: string; | ||
storageKeys: string[]; | ||
address: PrefixedHexString; | ||
storageKeys: PrefixedHexString[]; | ||
}; | ||
@@ -39,0 +39,0 @@ export declare type AccessListBufferItem = [Buffer, Buffer[]]; |
@@ -6,2 +6,4 @@ "use strict"; | ||
const types_1 = require("./types"); | ||
const emptyAccessList = []; | ||
const emptyBuffer = Buffer.from([]); | ||
/** | ||
@@ -156,3 +158,2 @@ * Typed transaction with optional access lists | ||
const [chainId, nonce, gasPrice, gasLimit, to, value, data, accessList, v, r, s] = values; | ||
const emptyBuffer = Buffer.from([]); | ||
return new AccessListEIP2930Transaction({ | ||
@@ -166,3 +167,3 @@ chainId: new ethereumjs_util_1.BN(chainId), | ||
data: data !== null && data !== void 0 ? data : emptyBuffer, | ||
accessList: accessList !== null && accessList !== void 0 ? accessList : emptyBuffer, | ||
accessList: accessList !== null && accessList !== void 0 ? accessList : emptyAccessList, | ||
v: v !== undefined ? new ethereumjs_util_1.BN(v) : undefined, | ||
@@ -169,0 +170,0 @@ r: r !== undefined && !r.equals(emptyBuffer) ? new ethereumjs_util_1.BN(r) : undefined, |
/// <reference types="node" /> | ||
/// <reference types="bn.js" /> | ||
import { BN, AddressLike, BNLike, BufferLike } from 'ethereumjs-util'; | ||
import { BN, AddressLike, BNLike, BufferLike, PrefixedHexString } from 'ethereumjs-util'; | ||
import Common from '@ethereumjs/common'; | ||
@@ -35,4 +35,4 @@ import { default as Transaction } from './legacyTransaction'; | ||
export declare type AccessListItem = { | ||
address: string; | ||
storageKeys: string[]; | ||
address: PrefixedHexString; | ||
storageKeys: PrefixedHexString[]; | ||
}; | ||
@@ -39,0 +39,0 @@ export declare type AccessListBufferItem = [Buffer, Buffer[]]; |
{ | ||
"name": "@ethereumjs/tx", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "A simple module for creating, manipulating and signing Ethereum transactions", | ||
@@ -14,3 +14,4 @@ "main": "dist/index.js", | ||
"build": "ethereumjs-config-ts-build", | ||
"prepublishOnly": "npm run build && npm run test", | ||
"prepublishOnly": "npm run clean && npm run build && npm run test", | ||
"clean": "rm -Rf ./dist && rm -Rf ./dist.browser", | ||
"coverage": "ethereumjs-config-coverage", | ||
@@ -36,3 +37,3 @@ "docs:build": "typedoc --options typedoc.js", | ||
"@ethereumjs/common": "^2.2.0", | ||
"ethereumjs-util": "^7.0.9" | ||
"ethereumjs-util": "^7.0.10" | ||
}, | ||
@@ -39,0 +40,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
208791
2654
Updatedethereumjs-util@^7.0.10