diff --git a/package.json b/package.json index 48f587c2..7a9bcaeb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.4.9", + "version": "1.4.10", "description": "An implementation of the SmartWeave smart contract protocol.", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", diff --git a/src/legacy/smartweave-global.ts b/src/legacy/smartweave-global.ts index 303fec0e..a9203064 100644 --- a/src/legacy/smartweave-global.ts +++ b/src/legacy/smartweave-global.ts @@ -32,7 +32,7 @@ import { InteractionState } from '../contract/states/InteractionState'; * */ -export type TransactionOrigin = "L1" | "L2"; +export type TransactionOrigin = 'L1' | 'L2'; export class SmartWeaveGlobal { gasUsed: number; @@ -209,7 +209,7 @@ export class SWTransaction { if (!this.smartWeaveGlobal._activeTx) { throw new Error('No current Tx'); } - return this.smartWeaveGlobal._activeTx.source === 'redstone-sequencer' ? 'L2' : 'L1' ; + return this.smartWeaveGlobal._activeTx.source === 'redstone-sequencer' ? 'L2' : 'L1'; } }