Skip to content

Commit

Permalink
chore: update MsgStoreCode param
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Aug 23, 2024
1 parent 28f4855 commit eb162be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/sdk-ts/src/core/modules/wasm/msgs/MsgStoreCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import { fromUtf8 } from '../../../../utils/utf8'
import { MsgBase } from '../../MsgBase'
import snakecaseKeys from 'snakecase-keys'
import { CosmwasmWasmV1Tx } from '@injectivelabs/core-proto-ts'
import { AccessConfig } from '@injectivelabs/core-proto-ts/cjs/cosmwasm/wasm/v1/types'

export declare namespace MsgStoreCode {
export interface Params {
sender: string
wasmBytes: Uint8Array | string
instantiatePermission?: AccessConfig
}

export type Proto = CosmwasmWasmV1Tx.MsgStoreCode
Expand Down Expand Up @@ -34,6 +36,10 @@ export default class MsgStoreCode extends MsgBase<
? fromUtf8(params.wasmBytes)
: params.wasmBytes

if (params.instantiatePermission) {
message.instantiatePermission = params.instantiatePermission
}

return CosmwasmWasmV1Tx.MsgStoreCode.fromPartial(message)
}

Expand Down

0 comments on commit eb162be

Please sign in to comment.