stacks-archive / stacks-transactions-js

The JavaScript library for generating Stacks 2.0 transactions
19 stars 17 forks source link

fix: abi validation should allow buffers less than the specified size #96

Closed reedrosenbluth closed 4 years ago

reedrosenbluth commented 4 years ago

Description

Allow buffers provided as contract-call arguments to be less than or equal to the size specified in the ABI.

Checklist

codecov[bot] commented 4 years ago

Codecov Report

Merging #96 into master will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #96   +/-   ##
=======================================
  Coverage   84.17%   84.17%           
=======================================
  Files          28       28           
  Lines        1820     1820           
  Branches      390      367   -23     
=======================================
  Hits         1532     1532           
  Misses        286      286           
  Partials        2        2           
Impacted Files Coverage Δ
src/contract-abi.ts 75.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 68bbe29...1d89f83. Read the comment docs.