Skip to content

Commit

Permalink
✅ Fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
William Cory authored and William Cory committed Aug 31, 2024
1 parent 81fc79a commit 3744b0a
Show file tree
Hide file tree
Showing 7 changed files with 311 additions and 509 deletions.
4 changes: 2 additions & 2 deletions packages/address/src/createAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Address } from './Address.js'
* // non hex string
* address = createAddress('55'.repeat(20))
* ```
* @param {import("@tevm/utils").AddressLike | number | bigint} address
* @param {import("@tevm/utils").AddressLike | number | bigint | string} address
* @returns {import('./Address.js').Address}
* @throws {InvalidAddressError} if the input is not a valid address}
*/
Expand All @@ -36,7 +36,7 @@ export const createAddress = (address) => {
return new Address(numberToBytes(address, { size: 20 }))
}
if (typeof address === 'string' && address.startsWith('0x')) {
return new Address(hexToBytes(/** @type {import('viem').Hex}*/ (address), { size: 20 }))
return new Address(hexToBytes(/** @type {import('viem').Hex}*/(address), { size: 20 }))
}
if (typeof address === 'string') {
return new Address(hexToBytes(`0x${address}`, { size: 20 }))
Expand Down

This file was deleted.

92 changes: 0 additions & 92 deletions packages/errors/src/ethereum/ethereumjs/AuthInvalidSError.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/errors/src/ethereum/ethereumjs/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// index.ts

export {
AuthCallNonZeroValueExtError,
type AuthCallNonZeroValueExtErrorParameters,
} from './AuthCallNonZeroValueExtError.js'
export { AuthCallUnsetError, type AuthCallUnsetErrorParameters } from './AuthCallUnsetError.js'
export { AuthInvalidSError, type AuthInvalidSErrorParameters } from './AuthInvalidSError.js'
export { BLS12381FpNotInFieldError, type BLS12381FpNotInFieldErrorParameters } from './BLS12381FpNotInFieldError.js'
export { BLS12381InputEmptyError, type BLS12381InputEmptyErrorParameters } from './BLS12381InputEmptyError.js'
export {
Expand Down
4 changes: 0 additions & 4 deletions packages/errors/src/ethereum/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@ export { UnknownBlockError, type UnknownBlockErrorParameters } from './UnknownBl
export { UnsupportedChainError, type UnsupportedChainErrorParameters } from './UnsupportedChainError.js'
export { AccountNotFoundError } from './AccountNotFoundError.js'
export {
AuthCallNonZeroValueExtError,
type AuthCallNonZeroValueExtErrorParameters,
AuthCallUnsetError,
type AuthCallUnsetErrorParameters,
AuthInvalidSError,
type AuthInvalidSErrorParameters,
BLS12381FpNotInFieldError,
type BLS12381FpNotInFieldErrorParameters,
BLS12381InputEmptyError,
Expand Down
4 changes: 0 additions & 4 deletions packages/errors/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ export {
OutOfRangeError,
InternalEvmError,
InvalidJumpError,
AuthInvalidSError,
InvalidProofError,
AuthCallUnsetError,
StackOverflowError,
Expand All @@ -161,10 +160,8 @@ export {
type InternalEvmErrorParameters,
InvalidBytecodeResultError,
type InvalidJumpErrorParameters,
type AuthInvalidSErrorParameters,
CodeSizeExceedsMaximumError,
type InvalidProofErrorParameters,
AuthCallNonZeroValueExtError,
type AuthCallUnsetErrorParameters,
BLS12381PointNotOnCurveError,
type StackOverflowErrorParameters,
Expand All @@ -187,7 +184,6 @@ export {
type InitcodeSizeViolationErrorParameters,
type InvalidBytecodeResultErrorParameters,
type CodeSizeExceedsMaximumErrorParameters,
type AuthCallNonZeroValueExtErrorParameters,
type BLS12381PointNotOnCurveErrorParameters,
type BLS12381InvalidInputLengthErrorParameters,
ValueOverflowError,
Expand Down
Loading

0 comments on commit 3744b0a

Please sign in to comment.