fix: allow messages to be compiled without instructions (#17621)

* fix: allow messages to be compiled without instructions

* chore: fix tests
This commit is contained in:
Justin Starry
2021-06-02 12:39:59 -07:00
committed by GitHub
parent 19c49e2e25
commit 3e13cde988
2 changed files with 1 additions and 15 deletions

View File

@@ -214,7 +214,7 @@ export class Transaction {
}
if (this.instructions.length < 1) {
throw new Error('No instructions provided');
console.warn('No instructions provided');
}
let feePayer: PublicKey;