Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Bump Pact Pin - #172

Merged
fosskers merged 18 commits into
masterfrom
colin/bump-pact-pin
Apr 29, 2019
Merged

fosskers merged 18 commits into
masterfrom
colin/bump-pact-pin

Conversation

@fosskers

Copy link
Copy Markdown
Contributor

This will probably need help from @emilypi or @marklnichols to fix the API breakage.

Comment thread src/Chainweb/Pact/Backend/Orphans.hs Resolved
@fosskers
fosskers force-pushed the colin/bump-pact-pin branch from a81142b to 0529938 Compare April 26, 2019 20:20
, baseUrlPath = "" }

escapedCmd :: BS.ByteString
escapedCmd = [r|{"cmds":[{"hash":"d0613e7a16bf938f45b97aa831b0cc04da485140bec11cc8954e0509ea65d823472b1e683fa2950da1766cbe7fae9de8ed416e80b0ccbf12bfa6549eab89aeb6","sigs":[{"addr":"368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca","sig":"71cdedd5b1305881b1fd3d4ac2009cb247d0ebb55d1d122a7f92586828a1ed079e6afc9e8b3f75fa25fba84398eeea6cc3b92949a315420431584ba372605d07","scheme":"ED25519","pubKey":"368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca"}],"cmd":"{\"payload\":{\"exec\":{\"data\":null,\"code\":\"(+ 1 2)\"}},\"meta\":{\"gasLimit\":100,\"chainId\":\"0\",\"gasPrice\":1.0e-4,\"sender\":\"sender00\"},\"nonce\":\"2019-03-29 20:35:45.012384811 UTC\"}"}]}|]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marklnichols might take offense to the removal of this ;)

@emmanueldenloye and I figured it would be safer / more clear / more maintainable to carry around the Haskellized version of the same structure (testBatch). It also helped fix a bug.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine as long as it produces the same Pact code I had pasted from Stuarts utility.

@fosskers
fosskers force-pushed the colin/bump-pact-pin branch from 830837c to dbb5ee7 Compare April 29, 2019 16:07
@fosskers
fosskers force-pushed the colin/bump-pact-pin branch from dbb5ee7 to 9418cac Compare April 29, 2019 17:49
Paired with Mark to justify the removal of this.
return $ Def {..}
return $ Def{..}

-- FIXME: This should be autoderivable, since `Generic1` is autoderivable.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just leaving this note as a reminder of our discussion in which we agreed upon there needing to be a separate PR to replace these instances with the auto-derivable ones.

@fosskers
fosskers merged commit 8b49336 into master Apr 29, 2019
@fosskers
fosskers deleted the colin/bump-pact-pin branch April 29, 2019 20:30
newBlockTest "new-block-0" reqQIO
, withPact testEmptyMemPool $ \reqQIO ->
newBlockTest "empty block tests" reqQIO
newBlockTest "empty-block-tests" reqQIO

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks for noticing and fixing this. I had forgotten about it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants