From f6387da96982709f00ef30b0527ba4cf250052dd Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Fri, 16 Aug 2019 14:41:43 +0200 Subject: [PATCH] Fix misspell License: MIT Signed-off-by: Jakub Sztandera --- chain/vm/vm.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chain/vm/vm.go b/chain/vm/vm.go index 07828efa7..c50dee634 100644 --- a/chain/vm/vm.go +++ b/chain/vm/vm.go @@ -37,7 +37,7 @@ type VMContext struct { height uint64 cst *hamt.CborIpldStore - gasAvaliable types.BigInt + gasAvailable types.BigInt gasUsed types.BigInt // root cid of the state of the actor this invocation will be on @@ -117,7 +117,7 @@ func (vmc *VMContext) Send(to address.Address, method uint64, value types.BigInt Method: method, Value: value, Params: params, - GasLimit: vmc.gasAvaliable, + GasLimit: vmc.gasAvailable, } ret, err, _ := vmc.vm.send(ctx, msg, vmc) @@ -136,8 +136,8 @@ func (vmc *VMContext) GasUsed() types.BigInt { func (vmc *VMContext) ChargeGas(amount uint64) aerrors.ActorError { toUse := types.NewInt(amount) vmc.gasUsed = types.BigAdd(vmc.gasUsed, toUse) - if types.BigCmp(vmc.gasUsed, vmc.gasAvaliable) > 0 { - return aerrors.Newf(254, "not enough gas: used=%s, avaliable=%s", vmc.gasUsed, vmc.gasAvaliable) + if types.BigCmp(vmc.gasUsed, vmc.gasAvailable) > 0 { + return aerrors.Newf(254, "not enough gas: used=%s, available=%s", vmc.gasUsed, vmc.gasAvailable) } return nil } @@ -205,7 +205,7 @@ func (vm *VM) makeVMContext(ctx context.Context, sroot cid.Cid, msg *types.Messa }, gasUsed: usedGas, - gasAvaliable: msg.GasLimit, + gasAvailable: msg.GasLimit, } }