feat: protection against read after making a internal write

This commit is contained in:
ppe
2022-09-18 00:00:25 +02:00
committed by just_ppe
parent 0d1e665369
commit b55b57fda7
14 changed files with 338 additions and 66 deletions

View File

@@ -1,6 +1,6 @@
import Arweave from 'arweave';
import { LevelDbCache } from '../cache/impl/LevelDbCache';
import { Contract } from '../contract/Contract';
import {Contract, InnerCallData, InnerCallType} from '../contract/Contract';
import { CreateContract } from '../contract/deploy/CreateContract';
import { DefaultCreateContract } from '../contract/deploy/impl/DefaultCreateContract';
import { HandlerBasedContract } from '../contract/HandlerBasedContract';
@@ -61,9 +61,9 @@ export class Warp {
contract<State>(
contractTxId: string,
callingContract?: Contract,
callingInteraction?: GQLNodeInterface
innerCallData?: InnerCallData
): Contract<State> {
return new HandlerBasedContract<State>(contractTxId, this, callingContract, callingInteraction);
return new HandlerBasedContract<State>(contractTxId, this, callingContract, innerCallData);
}
/**