Skip to content

Commit

Permalink
fix(greeter): update cannonfiles for greeter packages (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlescano authored Apr 12, 2024
1 parent 969729d commit e0c42eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/sample-hardhat-project/cannonfile.consumer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ options.salt = "second"
options.msg = "a message from second greeter set"

[invoke.do_change_greeting2]
target = ["greeters.greeter"]
target = ["greeters.Greeter"]
func = "setGreeting"
args = ["<%= settings.change_greeting2 %>"]

# test for factory functionality
[invoke.clone]
target = ["greeters.greeter"]
target = ["greeters.Greeter"]
func = "doCloning"

factory.cloned.event = "NewClonedGreeter"
Expand All @@ -34,7 +34,7 @@ factory.cloned.artifact = "Greeter"
# Change clone greeting lets use change greetings for greeter clones
# At specified addresses
[invoke.change_clone_greeting]
target = ["greeters.greeter"]
target = ["greeters.Greeter"]
func = "changeCloneGreeting"
args = ["<%= contracts.cloned.address %>", "<%= formatBytes32String('New Greeting!') %>"]

Expand All @@ -48,14 +48,14 @@ var.OldCloneGreeting.artifact = "Greeter"

# test to parse through previous emitted event values
[invoke.set_new_greeting_for_next_clones]
target = ["greeters.greeter"]
target = ["greeters.Greeter"]
func = "setGreeting"
args = ["<%= settings.NewCloneGreeting %>"]

# Clone 2 greeters iteratively (used to test multiple emissions of the same event)
# Testing this using extras object instead of factory
[invoke.clone_iterative]
target = ["greeters.greeter"]
target = ["greeters.Greeter"]
func = "doCloningIteratively"
args = ["2"]

Expand All @@ -70,6 +70,6 @@ var.NewClonedGreeterEvent.expectCount = 2

# Change clone greeting enables changing greetings for greeter clones at specified addresses
[invoke.change_last_clone_greeting]
target = ["greeters.greeter"]
target = ["greeters.Greeter"]
func = "changeCloneGreeting"
args = ["<%= settings.NewClonedGreeterEvent_1 %>", "<%= formatBytes32String('Newest Greeting!') %>"]

0 comments on commit e0c42eb

Please sign in to comment.