Skip to content

Commit

Permalink
Use add_builtin, as user-supplied builtins may not yet exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Dec 2, 2020
1 parent 5bfe93e commit 6a00c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ impl ProgramTest {

// User-supplied additional builtins
for builtin in self.builtins {
bank.replace_builtin(
bank.add_builtin(
&builtin.name,
builtin.id,
builtin.process_instruction_with_context,
Expand Down

0 comments on commit 6a00c48

Please sign in to comment.