stellar / js-stellar-base

The lowest-level stellar helper library. It consists of classes to read, write, hash, and sign Stellar xdr
https://stellar.github.io/js-stellar-base/
Apache License 2.0
106 stars 138 forks source link

Fix handling `ScError` types in `scValToNative` #753

Closed Shaptic closed 3 months ago

Shaptic commented 3 months ago

Errors were updated, but converting them to native objects wasn't. Errors are now converted to the following format:

interface Error {
  type: "contract" | "system";
  code: number;
  value?: string; // only present for type === 'system'
}
Shaptic commented 3 months ago

cc @chadoh and @willemneal in case this needs to be done in ContractSpec, too

github-actions[bot] commented 3 months ago

Size Change: -2.35 kB (-0.07%)

Total Size: 3.21 MB

Filename Size Change
dist/stellar-base.js 2.35 MB -1.5 kB (-0.06%)
dist/stellar-base.min.js 855 kB -851 B (-0.1%)

compressed-size-action

Shaptic commented 3 months ago

@sreuland yessir! done :saluting_face: