feat: the new testnet (#242)
* feat: the new testnet * feat: the new testnet for contracts deployment * feat: remove testing env validation for testnet * feat: coherent generateWallet method for all envs * fix: testing methods fixes Co-authored-by: asiaziola <ziola.jm@gmail.com>
This commit is contained in:
@@ -212,6 +212,10 @@ export class HandlerBasedContract<State> implements Contract<State> {
|
||||
}
|
||||
const { arweave, interactionsLoader, environment } = this.warp;
|
||||
|
||||
// we're calling this to verify whether proper env is used for this contract
|
||||
// (e.g. test env for test contract)
|
||||
await this.warp.definitionLoader.load(this._contractTxId);
|
||||
|
||||
const effectiveTags = options?.tags || [];
|
||||
const effectiveTransfer = options?.transfer || emptyTransfer;
|
||||
const effectiveStrict = options?.strict === true;
|
||||
@@ -382,6 +386,7 @@ export class HandlerBasedContract<State> implements Contract<State> {
|
||||
transfer.target,
|
||||
transfer.winstonQty,
|
||||
bundle,
|
||||
this.warp.environment === 'testnet',
|
||||
reward
|
||||
);
|
||||
return interactionTx;
|
||||
@@ -613,7 +618,8 @@ export class HandlerBasedContract<State> implements Contract<State> {
|
||||
tags,
|
||||
transfer.target,
|
||||
transfer.winstonQty,
|
||||
true
|
||||
true,
|
||||
this.warp.environment === 'testnet'
|
||||
);
|
||||
const dummyTx = createDummyTx(tx, executionContext.caller, currentBlockData);
|
||||
|
||||
@@ -773,7 +779,7 @@ export class HandlerBasedContract<State> implements Contract<State> {
|
||||
const { arweave } = this.warp;
|
||||
const source = new SourceImpl(arweave);
|
||||
|
||||
const srcTx = await source.save(sourceData, this.signature.signer);
|
||||
const srcTx = await source.save(sourceData, this.warp.environment, this.signature.signer);
|
||||
|
||||
return srcTx.id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user