Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (app *WasmApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedA
//
// in favor of export at a block height
func (app *WasmApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) {
// check if there is a allowed address list
// check if there is an allowed address list
applyAllowedAddrs := len(jailAllowedAddrs) > 0

allowedAddrsMap := make(map[string]bool)
Expand Down
2 changes: 1 addition & 1 deletion app/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

// GenesisState of the blockchain is represented here as a map of raw json
// messages key'd by a identifier string.
// messages key'd by an identifier string.
// The identifier is used to determine which module genesis information belongs
// to so it may be appropriately routed during init chain.
// Within this application default genesis information is retrieved from
Expand Down
4 changes: 2 additions & 2 deletions docs/proto/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
<a name="cosmwasm.wasm.v1.AbsoluteTxPosition"></a>

### AbsoluteTxPosition
AbsoluteTxPosition is a unique transaction position that allows for global
AbsoluteTxPosition is an unique transaction position that allows for global
ordering of transactions.


Expand Down Expand Up @@ -225,7 +225,7 @@ ContractCodeHistoryEntry metadata to a contract.
<a name="cosmwasm.wasm.v1.ContractInfo"></a>

### ContractInfo
ContractInfo stores a WASM contract instance
ContractInfo stores an instance of a WASM contract


| Field | Type | Label | Description |
Expand Down
4 changes: 2 additions & 2 deletions proto/cosmwasm/wasm/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ message CodeInfo {
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
}

// ContractInfo stores a WASM contract instance
// ContractInfo stores an instance of a WASM contract
message ContractInfo {
option (gogoproto.equal) = true;

Expand Down Expand Up @@ -132,7 +132,7 @@ message ContractCodeHistoryEntry {
];
}

// AbsoluteTxPosition is a unique transaction position that allows for global
// AbsoluteTxPosition is an unique transaction position that allows for global
// ordering of transactions.
message AbsoluteTxPosition {
// BlockHeight is the block the contract was created at
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/ibc_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestIBCReflectContract(t *testing.T) {
// chain A: ibc_reflect_send.wasm
// chain B: reflect_1_5.wasm + ibc_reflect.wasm
//
// Chain A "ibc_reflect_send" sends a IBC packet "on channel connect" event to chain B "ibc_reflect"
// Chain A "ibc_reflect_send" sends an IBC packet "on channel connect" event to chain B "ibc_reflect"
// "ibc_reflect" sends a submessage to "reflect" which is returned as submessage.

var (
Expand Down
2 changes: 1 addition & 1 deletion tests/wasmibctesting/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (chain *WasmTestChain) Fund(addr sdk.AccAddress, amount math.Int) {
require.NoError(chain.TB, err)
}

// GetTimeoutHeight is a convenience function which returns a IBC packet timeout height
// GetTimeoutHeight is a convenience function which returns an IBC packet timeout height
// to be used for testing. It returns the current IBC height + 100 blocks
func (chain *WasmTestChain) GetTimeoutHeight() clienttypes.Height {
return clienttypes.NewHeight(clienttypes.ParseChainID(chain.ChainID), uint64(chain.GetContext().BlockHeight())+100)
Expand Down
4 changes: 2 additions & 2 deletions x/wasm/keeper/contract_keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (p PermissionedKeeper) Create(ctx sdk.Context, creator sdk.AccAddress, wasm
return p.nested.create(ctx, creator, wasmCode, instantiateAccess, p.authZPolicy)
}

// Instantiate creates an instance of a WASM contract using the classic sequence based address generator
// Instantiate creates an instance of an WASM contract using the classic sequence based address generator
func (p PermissionedKeeper) Instantiate(
ctx sdk.Context,
codeID uint64,
Expand All @@ -69,7 +69,7 @@ func (p PermissionedKeeper) Instantiate(
return p.nested.instantiate(ctx, codeID, creator, admin, initMsg, label, deposit, p.nested.ClassicAddressGenerator(), p.authZPolicy)
}

// Instantiate2 creates an instance of a WASM contract using the predictable address generator
// Instantiate2 creates an instance of an WASM contract using the predictable address generator
func (p PermissionedKeeper) Instantiate2(
ctx sdk.Context,
codeID uint64,
Expand Down
2 changes: 1 addition & 1 deletion x/wasm/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ type msgDispatcher interface {
}

// DefaultWasmVMContractResponseHandler default implementation that first dispatches submessage then normal messages.
// The Submessage execution may include an success/failure response handling by the contract that can overwrite the
// The Submessage execution may include a success/failure response handling by the contract that can overwrite the
// original
type DefaultWasmVMContractResponseHandler struct {
md msgDispatcher
Expand Down
6 changes: 3 additions & 3 deletions x/wasm/types/exported_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ type ViewKeeper interface {

// ContractOpsKeeper contains mutable operations on a contract.
type ContractOpsKeeper interface {
// Create uploads and compiles a WASM contract, returning a short identifier for the contract
// Create uploads and compiles a WASM contract, returning an identifier for the contract
Create(ctx sdk.Context, creator sdk.AccAddress, wasmCode []byte, instantiateAccess *AccessConfig) (codeID uint64, checksum []byte, err error)

// Instantiate creates an instance of a WASM contract using the classic sequence based address generator
// Instantiate creates an instance of an WASM contract using the classic sequence based address generator
Instantiate(
ctx sdk.Context,
codeID uint64,
Expand All @@ -45,7 +45,7 @@ type ContractOpsKeeper interface {
deposit sdk.Coins,
) (sdk.AccAddress, []byte, error)

// Instantiate2 creates an instance of a WASM contract using the predictable address generator
// Instantiate2 creates an instance of an WASM contract using the predictable address generator
Instantiate2(
ctx sdk.Context,
codeID uint64,
Expand Down
2 changes: 1 addition & 1 deletion x/wasm/types/gas_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
// Please note that all gas prices returned to wasmvm should have this multiplied.
// Benchmarks and numbers were discussed in: https://github.com/CosmWasm/wasmd/pull/634#issuecomment-938055852
DefaultGasMultiplier uint64 = 140_000
// DefaultInstanceCost is how much SDK gas we charge each time we load a WASM instance.
// DefaultInstanceCost is how much SDK gas we charge each time we load an instance of a WASM contract.
// Creating a new instance is costly, and this helps put a recursion limit to contracts calling contracts.
// Benchmarks and numbers were discussed in: https://github.com/CosmWasm/wasmd/pull/634#issuecomment-938056803
DefaultInstanceCost uint64 = 60_000
Expand Down
4 changes: 2 additions & 2 deletions x/wasm/types/types.pb.go

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

Loading