Skip to content

Commit

Permalink
fix: change null from did to undefined
Browse files Browse the repository at this point in the history
Null wasn't playing nice with polkadot's type converter
  • Loading branch information
monitz87 committed Jun 2, 2020
1 parent b970106 commit 75c1b3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/entities/SecurityToken/Transfers.ts
Expand Up @@ -121,7 +121,7 @@ export class Transfers extends Namespace<SecurityToken> {

const { from, to, amount } = args;

let fromDid = null;
let fromDid;
if (from) {
fromDid = stringToIdentityId(valueToDid(from), context);
}
Expand Down
5 changes: 3 additions & 2 deletions src/polkadot/polymesh/definitions.ts
Expand Up @@ -471,7 +471,7 @@ export default {
rpc: {
identity: {
isIdentityHasValidCdd: {
description: 'use to tell whether the given did has valid cdd claim or not',
description: 'use to tell whether the given ' + 'did has valid cdd claim or not',
params: [
{
name: 'did',
Expand Down Expand Up @@ -607,7 +607,8 @@ export default {
},
asset: {
canTransfer: {
description: 'Checks whether a transaction with given parameters can take place or not',
description:
'Checks whether a transaction with ' + 'given parameters can take place or ' + 'not',
params: [
{
name: 'sender',
Expand Down

0 comments on commit 75c1b3d

Please sign in to comment.