Skip to content

Commit

Permalink
Fix contract owner class
Browse files Browse the repository at this point in the history
  • Loading branch information
kanshi committed Aug 17, 2023
1 parent ec12cdf commit a706eac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion operations/set-token-distribution-rate-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-token-distribution-rate-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.1.20"
image = "ghcr.io/ator-development/smart-contracts:0.1.21"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-token-distribution-rate.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/set-token-distribution-rate-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-token-distribution-rate-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.1.20"
image = "ghcr.io/ator-development/smart-contracts:0.1.21"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-token-distribution-rate.ts"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { LoggerFactory, WarpFactory } from 'warp-contracts'
import { EthereumSigner } from 'warp-contracts-plugin-deploy'
import { EthersExtension } from 'warp-contracts-plugin-ethers'
import {
buildEvmSignature,
Expand Down Expand Up @@ -56,8 +55,7 @@ async function main() {
}

const contract = warp.contract<DistributionState>(contractTxId)
const contractOwner = new EthereumSigner(contractOwnerPrivateKey)
const contractOwnerAddress = new Wallet(contractOwnerPrivateKey).address
const contractOwner = new Wallet(contractOwnerPrivateKey)

const input: SetTokenDistributionRate = {
function: 'setTokenDistributionRate',
Expand All @@ -69,7 +67,7 @@ async function main() {
const { cachedValue: { state } } = await contract.readState()
DistributionHandle(state, {
input,
caller: contractOwnerAddress,
caller: contractOwner.address,
interactionType: 'write'
})

Expand Down

0 comments on commit a706eac

Please sign in to comment.