Skip to content

Commit

Permalink
make time as int64 because wasm won't parse
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2019 committed Dec 19, 2023
1 parent d5377a3 commit d012833
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 65 deletions.
2 changes: 1 addition & 1 deletion proto/pstake/ratesync/v1beta1/contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ message LiquidStakeRate {
// cvalue = default_bond_denom_price/stk_denom_price
// cvalue = stk_denom_supply/default_bond_denom_supply
string c_value = 3[(gogoproto.nullable) = false, (cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"];
google.protobuf.Timestamp controller_chain_time = 4[(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
int64 controller_chain_time = 4;
}
2 changes: 1 addition & 1 deletion x/ratesync/keeper/ica_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (k *Keeper) ExecuteLiquidStakeRateTx(ctx sdk.Context, feature types.LiquidS
DefaultBondDenom: hostDenom,
StkDenom: mintDenom,
CValue: cValue,
ControllerChainTime: ctx.BlockTime(),
ControllerChainTime: ctx.BlockTime().Unix(),
},
}
contractBz, err := json.Marshal(contractMsg)
Expand Down
106 changes: 43 additions & 63 deletions x/ratesync/types/contract.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d012833

Please sign in to comment.