docs: fix typo (#21815)

This commit is contained in:
hatti 2024-09-19 15:20:41 +08:00 committed by GitHub
parent 29077c866c
commit 8d5020fd0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ func RandomGenesisSendEnabled(r *rand.Rand, bondDenom string) []types.SendEnable
// P(sef) = 18.0% = SendEnabled entry that does not equal the default = P(stc') + P(sfc) = .045 + .135 = .180
//
// P(t) = 81.0% = Bond denom is sendable = P(a'c) + P(st) = .360 + .450 = .810
// P(f) = 19.0% = Bond demon is NOT sendable = P(a'c') + P(sf) = .040 + .150 = .190
// P(f) = 19.0% = Bond denom is NOT sendable = P(a'c') + P(sf) = .040 + .150 = .190
return rv
}

View File

@ -112,7 +112,7 @@ func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.R
// Params.SendEnabled slice is empty, this is a noop.
//
// If the main SendEnabled slice already has entries, the Params.SendEnabled
// entries are added. In case of the same demon in both, preference is given to
// entries are added. In case of the same denom in both, preference is given to
// the existing (main GenesisState field) entry.
func (gs *GenesisState) MigrateSendEnabled() {
gs.SendEnabled = gs.GetAllSendEnabled()

View File

@ -24,7 +24,7 @@ func TestAminoJsonSignMode(t *testing.T) {
Msg: &bankv1beta1.MsgSend{
FromAddress: "foo",
ToAddress: "bar",
Amount: []*basev1beta1.Coin{{Denom: "demon", Amount: "100"}},
Amount: []*basev1beta1.Coin{{Denom: "denom", Amount: "100"}},
},
AccNum: 1,
AccSeq: 2,

View File

@ -29,7 +29,7 @@ func FuzzSignModeGetSignBytes(f *testing.F) {
Msg: &bankv1beta1.MsgSend{
FromAddress: "foo",
ToAddress: "bar",
Amount: []*basev1beta1.Coin{{Denom: "demon", Amount: "100"}},
Amount: []*basev1beta1.Coin{{Denom: "denom", Amount: "100"}},
},
AccNum: 1,
AccSeq: 2,