aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2020-09-19 14:33:17 -0400
committerDeterminant <tederminant@gmail.com>2020-09-19 14:33:17 -0400
commiteda06da4c762be9944fdc1dbb3c7786fc4719960 (patch)
tree751095c84c9a878647c96dc5a3c7f752a34c3332 /plugin/evm/vm.go
parentbf037f27122dcc96849b4dd3d9f9f76c9bb26292 (diff)
...
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r--plugin/evm/vm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index 2ce72be..52e4acf 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -898,7 +898,7 @@ func (vm *VM) GetSpendableCanonical(keys []*crypto.PrivateKeySECP256K1R, assetID
}
addr := GetEthAddress(key)
var balance uint64
- if assetID == vm.ctx.AVAXAssetID {
+ if assetID.Equals(vm.ctx.AVAXAssetID) {
balance = new(big.Int).Div(state.GetBalance(addr), x2cRate).Uint64()
} else {
balance = new(big.Int).Div(state.GetBalanceMultiCoin(addr, assetID.Key()), x2cRate).Uint64()