@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "warp-contracts",
|
"name": "warp-contracts",
|
||||||
"version": "1.4.9",
|
"version": "1.4.10",
|
||||||
"description": "An implementation of the SmartWeave smart contract protocol.",
|
"description": "An implementation of the SmartWeave smart contract protocol.",
|
||||||
"types": "./lib/types/index.d.ts",
|
"types": "./lib/types/index.d.ts",
|
||||||
"main": "./lib/cjs/index.js",
|
"main": "./lib/cjs/index.js",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import { InteractionState } from '../contract/states/InteractionState';
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export type TransactionOrigin = "L1" | "L2";
|
export type TransactionOrigin = 'L1' | 'L2';
|
||||||
|
|
||||||
export class SmartWeaveGlobal {
|
export class SmartWeaveGlobal {
|
||||||
gasUsed: number;
|
gasUsed: number;
|
||||||
@@ -209,7 +209,7 @@ export class SWTransaction {
|
|||||||
if (!this.smartWeaveGlobal._activeTx) {
|
if (!this.smartWeaveGlobal._activeTx) {
|
||||||
throw new Error('No current Tx');
|
throw new Error('No current Tx');
|
||||||
}
|
}
|
||||||
return this.smartWeaveGlobal._activeTx.source === 'redstone-sequencer' ? 'L2' : 'L1' ;
|
return this.smartWeaveGlobal._activeTx.source === 'redstone-sequencer' ? 'L2' : 'L1';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user