Skip to content

Commit

Permalink
back transfers API change
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Oct 30, 2023
1 parent e8e5903 commit ba36c97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vmhost/vmhooks/managedei.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (context *VMHooksImpl) ManagedGetMultiESDTCallValue(multiCallValueHandle in

// ManagedGetBackTransfers VMHooks implementation.
// @autogenerate(VMHooks)
func (context *VMHooksImpl) ManagedGetBackTransfers(esdtTransfersValueHandle int32, callValueHandle int32) {
func (context *VMHooksImpl) ManagedGetBackTransfers(esdtTransfersValueHandle int32, egldValueHandle int32) {
metering := context.GetMeteringContext()
managedType := context.GetManagedTypesContext()

Expand All @@ -259,7 +259,8 @@ func (context *VMHooksImpl) ManagedGetBackTransfers(esdtTransfersValueHandle int
managedType.ConsumeGasForBytes(multiCallBytes)

managedType.SetBytes(esdtTransfersValueHandle, multiCallBytes)
managedType.SetBytes(callValueHandle, transferValue.Bytes())
egldValue := managedType.GetBigIntOrCreate(egldValueHandle)
egldValue.SetBytes(transferValue.Bytes())
}

// ManagedGetESDTBalance VMHooks implementation.
Expand Down

0 comments on commit ba36c97

Please sign in to comment.