@alephium/web3 1.11.4 → 1.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -482,7 +482,7 @@ export class Contract extends Artifact {
482
482
  blockTimeStamp: params.blockTimeStamp,
483
483
  txId: params.txId,
484
484
  address: params.address,
485
- callerAddress: params.callerAddress,
485
+ callerContractAddress: params.callerAddress,
486
486
  bytecode: this.isInlineFunc(methodIndex) ? this.getByteCodeForTesting() : this.bytecodeDebug,
487
487
  initialImmFields: immFields,
488
488
  initialMutFields: mutFields,
@@ -298,5 +298,5 @@ export function toApiDestinations(data: Destination[]): node.Destination[] {
298
298
  }
299
299
 
300
300
  export function fromApiDestination(data: node.Destination): Destination {
301
- return { ...data, attoAlphAmount: fromApiNumber256(data.attoAlphAmount), tokens: fromApiTokens(data.tokens) }
301
+ return { ...data, attoAlphAmount: fromApiNumber256(data.attoAlphAmount ?? '0'), tokens: fromApiTokens(data.tokens) }
302
302
  }
@@ -18,6 +18,7 @@ along with the library. If not, see <http://www.gnu.org/licenses/>.
18
18
 
19
19
  import { Number256, Token } from '../api'
20
20
  import { node } from '../api'
21
+ import { SimulationResult } from '../api/api-alephium'
21
22
  import { Eq, assertType, NetworkId } from '../utils'
22
23
 
23
24
  export type Address = string
@@ -113,7 +114,7 @@ export interface SignExecuteScriptTxResult {
113
114
  signature: string
114
115
  gasAmount: number
115
116
  gasPrice: Number256
116
- simulatedOutputs: node.Output[]
117
+ simulationResult: SimulationResult
117
118
  }
118
119
  assertType<
119
120
  Eq<