v1.4.10
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
ppedziwiatr
2023-05-31 16:28:21 +02:00
parent d136f734f3
commit c1c8824ca6
2 changed files with 3 additions and 3 deletions

View File

@@ -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",

View File

@@ -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';
}
}