Skip to content

Commit

Permalink
fix(vats): tolerate null powerFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Dec 7, 2022
1 parent fa9c030 commit 6759d4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vats/src/core/chain-behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ export const bridgeProvisioner = async ({
async fromBridge(_srcID, obj) {
switch (obj.type) {
case 'PLEASE_PROVISION': {
const { nickname, address, powerFlags } = obj;
const { nickname, address, powerFlags: rawPowerFlags } = obj;
const powerFlags = rawPowerFlags || [];
let provisionP;
if (powerFlags.includes(PowerFlags.SMART_WALLET)) {
// Only provision a smart wallet.
Expand Down

0 comments on commit 6759d4d

Please sign in to comment.