From 174130c0adecf34f6aaa55365ad5034a8321b75b Mon Sep 17 00:00:00 2001 From: Jongwon Park <contact@parkjongwon.com> Date: Fri, 23 Aug 2024 03:30:06 +0900 Subject: [PATCH] chore(x/evmstaking): rename parsed event params --- client/x/evmstaking/keeper/deposit.go | 4 ++-- client/x/evmstaking/keeper/redelegation.go | 2 +- client/x/evmstaking/keeper/set_address.go | 2 +- client/x/evmstaking/keeper/validator.go | 2 +- client/x/evmstaking/keeper/withdraw.go | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/x/evmstaking/keeper/deposit.go b/client/x/evmstaking/keeper/deposit.go index 7cd397ca..e329dc1d 100644 --- a/client/x/evmstaking/keeper/deposit.go +++ b/client/x/evmstaking/keeper/deposit.go @@ -16,12 +16,12 @@ import ( ) func (k Keeper) ProcessDeposit(ctx context.Context, ev *bindings.IPTokenStakingDeposit) error { - depositorPubkey, err := k1util.PubKeyBytesToCosmos(ev.DepositorPubkey) + depositorPubkey, err := k1util.PubKeyBytesToCosmos(ev.DelegatorCmpPubkey) if err != nil { return errors.Wrap(err, "depositor pubkey to cosmos") } - validatorPubkey, err := k1util.PubKeyBytesToCosmos(ev.ValidatorPubkey) + validatorPubkey, err := k1util.PubKeyBytesToCosmos(ev.ValidatorCmpPubkey) if err != nil { return errors.Wrap(err, "validator pubkey to cosmos") } diff --git a/client/x/evmstaking/keeper/redelegation.go b/client/x/evmstaking/keeper/redelegation.go index a765fd2d..10c6e715 100644 --- a/client/x/evmstaking/keeper/redelegation.go +++ b/client/x/evmstaking/keeper/redelegation.go @@ -15,7 +15,7 @@ import ( ) func (k Keeper) ProcessRedelegate(ctx context.Context, ev *bindings.IPTokenStakingRedelegate) error { - depositorPubkey, err := k1util.PubKeyBytesToCosmos(ev.DepositorPubkey) + depositorPubkey, err := k1util.PubKeyBytesToCosmos(ev.DelegatorCmpPubkey) if err != nil { return errors.Wrap(err, "depositor pubkey to cosmos") } diff --git a/client/x/evmstaking/keeper/set_address.go b/client/x/evmstaking/keeper/set_address.go index c8f1a276..900c10d4 100644 --- a/client/x/evmstaking/keeper/set_address.go +++ b/client/x/evmstaking/keeper/set_address.go @@ -12,7 +12,7 @@ import ( ) func (k Keeper) ProcessSetWithdrawalAddress(ctx context.Context, ev *bindings.IPTokenStakingSetWithdrawalAddress) error { - depositorPubkey, err := k1util.PubKeyBytesToCosmos(ev.DepositorPubkey) + depositorPubkey, err := k1util.PubKeyBytesToCosmos(ev.DelegatorCmpPubkey) if err != nil { return errors.Wrap(err, "depositor pubkey to cosmos") } diff --git a/client/x/evmstaking/keeper/validator.go b/client/x/evmstaking/keeper/validator.go index 9d05f98c..81528fc9 100644 --- a/client/x/evmstaking/keeper/validator.go +++ b/client/x/evmstaking/keeper/validator.go @@ -19,7 +19,7 @@ import ( func (k Keeper) ProcessCreateValidator(ctx context.Context, ev *bindings.IPTokenStakingCreateValidator) error { // When creating a validator, it's self-delegation. Thus, validator pubkey is also delegation pubkey. - validatorPubkey, err := k1util.PubKeyBytesToCosmos(ev.ValidatorPubkey) + validatorPubkey, err := k1util.PubKeyBytesToCosmos(ev.ValidatorCmpPubkey) if err != nil { return errors.Wrap(err, "validator pubkey to cosmos") } diff --git a/client/x/evmstaking/keeper/withdraw.go b/client/x/evmstaking/keeper/withdraw.go index da942edd..62cc93ef 100644 --- a/client/x/evmstaking/keeper/withdraw.go +++ b/client/x/evmstaking/keeper/withdraw.go @@ -232,12 +232,12 @@ func (k Keeper) EnqueueEligiblePartialWithdrawal(ctx context.Context, withdrawal } func (k Keeper) ProcessWithdraw(ctx context.Context, ev *bindings.IPTokenStakingWithdraw) error { - depositorPubkey, err := k1util.PubKeyBytesToCosmos(ev.DepositorPubkey) + depositorPubkey, err := k1util.PubKeyBytesToCosmos(ev.DelegatorCmpPubkey) if err != nil { return errors.Wrap(err, "depositor pubkey to cosmos") } - validatorPubkey, err := k1util.PubKeyBytesToCosmos(ev.ValidatorPubkey) + validatorPubkey, err := k1util.PubKeyBytesToCosmos(ev.ValidatorCmpPubkey) if err != nil { return errors.Wrap(err, "validator pubkey to cosmos") }