Replies: 1 comment 2 replies
-
Assuming you mean this: contract MyScript is Script {
uint256 public myVar = 10; // <-- The public var you are referring to
function run() public {
vm.broadcast();
A.foo(myVar); // <-- The broadcasted transaction
}
} In that example, it does not matter whether |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I use a public variable in my script contract in the context of vm.broadcast does it cost extra gas to broadcast?
Beta Was this translation helpful? Give feedback.
All reactions