Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: more forgiving dot address parsing #3938

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

dandanlen
Copy link
Collaborator

Pull Request

This came up while testing some stuff with Assem.

We currently require polkadot addresses in the broker api to be input as hex.

This PR adds the possibility to use ss58 encoding.

@dandanlen dandanlen requested a review from j4m1ef0rd September 4, 2023 12:00
@dandanlen dandanlen changed the title feat: more forgiving dot parsing feat: more forgiving dot address parsing Sep 4, 2023
@codecov
Copy link

codecov bot commented Sep 4, 2023

Codecov Report

Merging #3938 (e3a275f) into main (a5205b9) will increase coverage by 0%.
Report is 1 commits behind head on main.
The diff coverage is 96%.

@@          Coverage Diff          @@
##            main   #3938   +/-   ##
=====================================
  Coverage     73%     73%           
=====================================
  Files        367     367           
  Lines      56037   56090   +53     
  Branches   56037   56090   +53     
=====================================
+ Hits       40631   40696   +65     
+ Misses     13345   13333   -12     
  Partials    2061    2061           
Files Changed Coverage Δ
state-chain/chains/src/dot.rs 41% <83%> (+1%) ⬆️
state-chain/chains/src/dot/serializable_address.rs 54% <95%> (+54%) ⬆️
api/lib/src/lib.rs 33% <100%> (+7%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dandanlen dandanlen merged commit 66e83d5 into main Sep 5, 2023
@dandanlen dandanlen deleted the feat/more-forgiving-dot-address-parsing branch September 5, 2023 10:12
syan095 added a commit that referenced this pull request Sep 8, 2023
…on-integration

* origin/main:
  fix: scale encoding skip phantom data (#3967)
  chore: make platform team code owner of CI settings.toml and localnet (#3957)
  fix: prefer finalize_signed_extrinsic in engine (#3956)
  fix: CanonicalAssetPair encoding issue (#3958)
  chore(bouncer): Update sdk to 0.0.40 (#3945)
  fix: tweak cli generate-keys output (#3943)
  chore: add `preinst` script unit tests 🧪 (#3942)
  Better LP/Broker API RPC Errors (#3931)
  fix: update substrate ref to use Kademlia fix (#3941)
  doc: update funding readme with redemption restrictions (#3914)
  feat: PRO-474 broadcast safe mode (#3902)
  feat: more forgiving dot address parsing (#3938)
  fix: duplicate logging (#3939)
  feat: new lp interface (#3886)

# Conflicts:
#	Cargo.lock
#	state-chain/cf-integration-tests/Cargo.toml
#	state-chain/cf-integration-tests/src/authorities.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants